/*
Theme Name: Centro Analisi Valverde
Author: Tuo Nome
Description: Tema su misura per il Centro Analisi
Version: 1.0
*/

:root {
    --purple: #8675c9; --blue-light: #6798d0; --cyan: #7bc1c9;
    --blue-dark: #1b499b; --text-blue: #005eb8; --text-purple: #5c4b99;
    --bg-cyan-faint: #f0f8fb; --bg-purple-light: #e4e6f3;
    --text-dark: #333; --text-gray: #666; --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--white); color: var(--text-dark); overflow-x: hidden; }

/* Side Nav */
.side-nav { position: fixed; left: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; z-index: 1000; }
.side-nav-item { display: flex; align-items: center; text-decoration: none; cursor: pointer; padding: 5px 0; }
.side-nav-dot { width: 8px; height: 8px; background-color: #b0c4de; border-radius: 50%; transition: all 0.3s ease; position: relative; }
.side-nav-item.active .side-nav-dot, .side-nav-item:hover .side-nav-dot { background-color: var(--text-blue); box-shadow: 0 0 0 4px rgba(0, 94, 184, 0.2); }
.side-nav-label { font-size: 11px; font-weight: 600; color: var(--text-blue); letter-spacing: 1px; text-transform: uppercase; margin-left: 15px; white-space: nowrap; opacity: 0; transform: translateX(-10px); transition: all 0.3s ease; }
.side-nav-item.active .side-nav-label, .side-nav-item:hover .side-nav-label { opacity: 1; transform: translateX(0); }

/* Hero & Header (Sticky) */
.hero-section { position: relative; min-height: 85vh; background: linear-gradient(to bottom, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.88) 100%), url('sfondo_home.png') center/cover; display: flex; flex-direction: column; }
.top-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; transition: all 0.4s ease; }
.top-header.scrolled { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); padding: 10px 50px; }
.top-header.scrolled .nav-menus { background: transparent; padding: 0; }
.logo-container { display: flex; align-items: center; }
.logo-container img { max-height: 75px; width: auto; }

/* Menu Link e Bottoni */
.nav-menus { display: flex; flex-direction: column; align-items: center; gap: 20px; background: rgba(255,255,255,0.3); padding: 15px 40px; border-radius: 50px; backdrop-filter: blur(5px); }
.text-links { display: flex; justify-content: center; gap: 35px; list-style: none; font-size: 13px; font-weight: 500; width: 100%; }
.text-links a { text-decoration: none; color: var(--text-dark); display: flex; align-items: center; gap: 5px; transition: color 0.2s; }
.text-links a:hover { color: var(--text-blue); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); list-style: none; padding: 10px 0; min-width: 220px; opacity: 0; visibility: hidden; transition: all 0.3s ease; border: 1px solid rgba(0,0,0,0.05); }
.dropdown::after { content: ''; position: absolute; width: 100%; height: 20px; bottom: -20px; left: 0; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(15px); }
.dropdown-menu li a { padding: 12px 20px; display: block; color: var(--text-dark); text-align: left; transition: background 0.2s, color 0.2s; }
.dropdown-menu li a:hover { background: var(--bg-cyan-faint); color: var(--text-blue); }
.action-buttons { display: flex; gap: 10px; }
.btn-action { padding: 10px 30px; border-radius: 50px; color: var(--white); text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; border: none; cursor: pointer; transition: transform 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-action:hover { transform: scale(1.05); }
.btn-purple { background-color: var(--purple); } .btn-blue-light { background-color: var(--blue-light); } .btn-cyan { background-color: var(--cyan); } .btn-blue-dark { background-color: var(--blue-dark); }

/* Hero Text e Card */
.hero-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; position: relative; z-index: 10; margin-top: -50px; }
.hero-subtitle { font-size: 14px; color: var(--text-gray); letter-spacing: 1px; margin-bottom: 75px; text-transform: uppercase; font-weight: 600; }
.hero-title { font-size: 42px; font-weight: 200; color: var(--text-dark); line-height: 1.2; margin-bottom: 15px; }
.hero-description { font-size: 20px; font-weight: 300; color: var(--text-dark); margin-bottom: 50px; }
.hero-info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; width: 100%; max-width: 1150px; margin: 0 auto; position: relative; z-index: 10; }
.hero-info-cards::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 110%; height: 200px; background: radial-gradient(ellipse, rgba(134, 117, 201, 0.15) 0%, transparent 70%); z-index: -1; filter: blur(20px); border-radius: 50%; }

/* Nuove Card Hero Moderne */
.info-card { 
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); 
    padding: 35px; border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); 
    border: 1px solid rgba(255, 255, 255, 0.8); text-align: left; text-decoration: none; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    display: flex; flex-direction: column; align-items: flex-start;
    position: relative; overflow: hidden;
}

.info-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: transparent; transition: all 0.4s ease;
}

.info-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); 
    background: #ffffff;
}

/* Icon Box con sfondo morbido */
.info-icon-box { 
    width: 60px; height: 60px; border-radius: 18px; 
    display: flex; align-items: center; justify-content: center; 
    transition: all 0.4s ease; 
}
.info-icon-box svg { width: 30px; height: 30px; stroke-width: 1.5; }

/* Tipografia interna */
.info-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 0px; line-height: 1.2; transition: color 0.3s;} 
.info-card p { color: var(--text-gray); font-size: 14px; line-height: 1.6; font-weight: 400; margin-bottom: 30px; text-align: justify; }

.info-card-header {
    display: flex;
    align-items: center;
    gap: 15px; /* Spazio tra icona e titolo */
    margin-bottom: 20px; /* Spazio sotto al titolo */
}

/* Pulsante "Scopri di piÃ¹" che si allinea sempre in basso */
.card-cta { 
    margin-top: auto; display: flex; align-items: center; gap: 8px; 
    font-size: 13px; font-weight: 600; text-transform: uppercase; 
    letter-spacing: 0.5px; transition: all 0.3s; 
}
.card-cta svg { transition: transform 0.3s ease; }
.info-card:hover .card-cta svg { transform: translateX(6px); }

/* --- Temi Colori Specifici per ogni Card --- */
/* Tema Viola (Prenotazione) */
.theme-purple .info-icon-box { background: rgba(134, 117, 201, 0.12); color: var(--purple); }
.theme-purple h3 { color: var(--purple); }
.theme-purple .card-cta { color: var(--purple); }
.theme-purple:hover::after { background: var(--purple); }
.theme-purple:hover { border-color: rgba(134, 117, 201, 0.3); }
.theme-purple:hover .info-icon-box { background: var(--purple); color: white; transform: scale(1.05) rotate(-5deg); }

/* Tema Ciano (Check-up) */
.theme-cyan .info-icon-box { background: rgba(123, 193, 201, 0.15); color: var(--cyan); }
.theme-cyan h3 { color: var(--cyan); }
.theme-cyan .card-cta { color: var(--cyan); }
.theme-cyan:hover::after { background: var(--cyan); }
.theme-cyan:hover { border-color: rgba(123, 193, 201, 0.3); }
.theme-cyan:hover .info-icon-box { background: var(--cyan); color: white; transform: scale(1.05) rotate(-5deg); }

/* Tema Blu Scuro (Genetica) */
.theme-blue .info-icon-box { background: rgba(27, 73, 155, 0.1); color: var(--blue-dark); }
.theme-blue h3 { color: var(--blue-dark); }
.theme-blue .card-cta { color: var(--blue-dark); }
.theme-blue:hover::after { background: var(--blue-dark); }
.theme-blue:hover { border-color: rgba(27, 73, 155, 0.2); }
.theme-blue:hover .info-icon-box { background: var(--blue-dark); color: white; transform: scale(1.05) rotate(-5deg); }

/* Servizi e Sezioni */
.services-section-white { background-color: var(--white); padding: 80px 0; display: flex; justify-content: center; }
.services-grid-centered { display: flex; justify-content: center; gap: 30px; max-width: 1200px; width: 100%; padding: 0 40px; flex-wrap: wrap; }
.service-pill { background-color: var(--bg-cyan-faint); border-radius: 100px; padding: 30px 40px; display: flex; align-items: center; gap: 20px; text-decoration: none; transition: all 0.3s ease; min-width: 320px; }
.service-pill:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.05); transform: translateY(-3px); }
.service-icon { color: var(--text-blue); width: 50px; height: 50px; flex-shrink: 0; } .service-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.service-text { color: var(--text-blue); font-size: 14px; font-weight: 600; text-transform: uppercase; line-height: 1.3; }
.section-heading { text-align: center; margin-bottom: 50px; } .section-heading h2 { font-size: 32px; font-weight: 300; color: var(--text-blue); margin-bottom: 10px; } .section-heading p { color: var(--text-gray); font-size: 16px; }

/* Orari, FAQ, News */
.hours-section { background-color: #f8f9fc; padding: 80px 20px; display: flex; justify-content: center; }
.hours-container { max-width: 1200px; width: 100%; } .hours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.hour-card { background: var(--white); padding: 35px 30px; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hour-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.hour-icon { width: 45px; height: 45px; margin-bottom: 20px; } .hour-icon.sun { color: #f59e0b; } .hour-icon.moon { color: var(--purple); } .hour-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.hour-card h3 { font-size: 18px; color: var(--text-blue); margin-bottom: 15px; font-weight: 600; } .hour-card p { color: var(--text-gray); font-size: 15px; line-height: 1.6; } .hour-card strong { color: var(--text-dark); font-weight: 500; }

.faq-section { background-color: var(--white); padding: 80px 20px; } .faq-container { max-width: 850px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; margin-bottom: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.02); overflow: hidden; transition: all 0.3s ease; }
.faq-item:hover { border-color: rgba(134, 117, 201, 0.4); }
.faq-question { padding: 20px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 16px; color: var(--text-blue); }
.faq-question::after { content: '+'; font-size: 24px; font-weight: 300; color: var(--purple); transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease; padding: 0 25px; background-color: #fafbfc; }
.faq-item.active .faq-answer { max-height: 300px; padding: 20px 25px; border-top: 1px solid rgba(0,0,0,0.05); } .faq-answer p { color: var(--text-gray); font-size: 15px; line-height: 1.6; }

.news-section { background-color: var(--bg-cyan-faint); padding: 80px 20px; } .news-container { max-width: 1200px; margin: 0 auto; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: transform 0.3s ease; text-decoration: none; display: block; }
.news-card:hover { transform: translateY(-8px); }
.news-img { width: 100%; height: 180px; background-color: #e4e6f3; object-fit: cover; }
.news-img.contain-img {
    object-fit: contain;
    background-color: #ffffff; /* Mette uno sfondo bianco pulito */
    padding: 15px; /* Aggiunge un po' di spazio vuoto intorno per far risaltare la grafica */
}
.news-content { padding: 25px; } .news-date { font-size: 12px; color: var(--purple); font-weight: 600; text-transform: uppercase; margin-bottom: 10px; display: block; }
.news-card h3 { font-size: 18px; color: var(--text-blue); margin-bottom: 10px; line-height: 1.3; } .news-card p { color: var(--text-gray); font-size: 14px; line-height: 1.5; }

.services-section-purple { background-color: var(--bg-purple-light); padding: 80px 0; display: flex; justify-content: center; }
.services-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; width: 100%; padding: 0 40px; }
.service-pill-white { background-color: var(--white); border-radius: 100px; padding: 35px 50px; display: flex; align-items: center; justify-content: center; gap: 20px; text-decoration: none; transition: all 0.3s ease; }
.service-pill-white:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.05); transform: translateY(-3px); } .service-pill-white .service-icon { color: var(--text-purple); } .service-pill-white .service-text { color: var(--text-purple); }

/* FOOTER COMPATTATO */
footer { background: #0f172a; color: white; padding: 2.5rem 2rem 1rem; }
.footer-content { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.8fr 0.9fr 0.9fr 1.3fr; gap: 1.5rem; margin-bottom: 1.5rem; align-items: start; }
.footer-brand h4 { color: white; margin-bottom: 0.75rem; font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 0.75rem; text-align: left; }
.footer-brand p { color: #94a3b8; line-height: 1.5; margin-bottom: 0.5rem; text-align: left; font-size: 0.9rem; } .footer-brand p span { line-height: 1.2; display: block; margin-top: 20px; font-size: 0.65rem; }
.footer-section h4 { color: white; margin-bottom: 1rem; font-weight: 700; font-size: 1.1rem; text-align: left; }
.footer-links { list-style: none; } .footer-links li { margin-bottom: 0.5rem; } .footer-links a { color: #94a3b8; text-decoration: none; transition: all 0.3s; display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; } .footer-links a:hover { color: white; transform: translateX(4px); }
.footer-contact p { color: #94a3b8; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.75rem; text-align: left; font-size: 0.9rem; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid #1e293b; text-align: center; color: #64748b; font-size: 0.8rem; }

/* Responsive */
@media (max-width: 1024px) { .services-grid-centered { gap: 15px; } .top-header { flex-direction: column; align-items: center; gap: 20px; } .nav-menus { align-items: center; width: 100%; } .side-nav { display: none; } }
@media (max-width: 992px) { .hero-info-cards { grid-template-columns: 1fr; max-width: 400px; gap: 20px; } .hours-grid, .news-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; } .footer-content { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .hero-title { font-size: 28px; } .services-grid-2 { grid-template-columns: 1fr; } .action-buttons { flex-wrap: wrap; justify-content: center; } .text-links { flex-wrap: wrap; justify-content: center; gap: 15px; } .top-header { padding: 20px; } .footer-content { grid-template-columns: 1fr; } .service-pill { min-width: 100%; } }

/* STILI PER IL TESTO DELLE NUOVE PAGINE INTERNE */
/* Modificato il margin-top a 180px per evitare che i titoli finiscano sotto l'header fisso */
.internal-page-content { max-width: 1100px; margin: 180px auto 100px auto; padding: 0 20px; min-height: 50vh; }
.internal-page-content h1 { color: var(--text-blue); margin-bottom: 30px; font-size: 38px; font-weight: 300; }
.internal-page-content p { color: var(--text-gray); line-height: 1.8; margin-bottom: 20px; font-size: 16px; }
/* =========================================================
   STILI PER LE PAGINE INTERNE (Esami, Preparazione, Check-up)
   ========================================================= */

/* --- Eroi Interni --- */
.page-hero, .checkup-hero { padding: 150px 20px 80px; text-align: center; }
.page-hero { background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.95) 100%), url('elenco_esami/elenco_esami.png') center 20%/cover; }
.checkup-hero { background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.95) 100%), url('check-up/sfondo_checkup.png') center/cover; }
.page-hero h1, .checkup-hero h1 { font-size: 42px; font-weight: 300; color: var(--text-dark); margin-bottom: 15px; }
.checkup-hero h1 { 
    font-size: 48px; 
    margin-bottom: 30px; 
    color: var(--cyan);
}
.page-hero p, .checkup-intro { font-size: 18px; font-weight: 300; color: var(--text-gray); max-width: 600px; margin: 0 auto; line-height: 1.6; }
.checkup-intro { font-size: 20px; color: var(--text-dark); max-width: 900px; }

/* --- Barra di Ricerca Esami --- */
.search-section { margin-top: -40px; position: relative; z-index: 20; padding: 0 20px; }
.search-container { max-width: 850px; margin: 0 auto; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-radius: 30px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); padding: 30px; border: 1px solid rgba(255, 255, 255, 0.6); }
.search-box { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; padding: 18px 25px 18px 55px; border: 1px solid rgba(0,0,0,0.1); border-radius: 50px; font-size: 16px; color: var(--text-dark); background: var(--white); outline: none; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); transition: all 0.3s; }
.search-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(123, 193, 201, 0.2); }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #999; }
.search-filters { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.filter-chip { padding: 8px 20px; background: var(--bg-cyan-faint); color: var(--text-blue); border-radius: 50px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s; text-transform: uppercase; }
.filter-chip:hover { transform: translateY(-2px); background: var(--cyan); color: var(--white); }
.filter-chip.active { background: var(--purple); color: var(--white); }

/* --- Navigazione Alfabetica --- */
.alpha-nav { position: sticky; top: 80px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 15px 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); z-index: 50; border-bottom: 1px solid rgba(0,0,0,0.05); margin-top: 30px; }
.alpha-container { max-width: 1000px; margin: 0 auto; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.alpha-link { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; color: var(--text-gray); font-weight: 600; font-size: 13px; transition: all 0.2s; }
.alpha-link:hover { background: var(--bg-purple-light); color: var(--text-purple); }
.alpha-link.active { background: var(--text-blue); color: var(--white); box-shadow: 0 4px 10px rgba(0, 94, 184, 0.3); }

/* --- Lista Esami --- */
.main-content { max-width: 900px; margin: 0 auto; padding: 50px 20px; }
.exam-section { margin-bottom: 50px; scroll-margin-top: 140px; }
.section-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 15px; }
.section-letter { width: 45px; height: 45px; background-color: var(--blue-dark); color: var(--white); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 500; box-shadow: 0 5px 15px rgba(27, 73, 155, 0.2); }
.exam-count { margin-left: auto; background: var(--bg-cyan-faint); color: var(--text-blue); padding: 5px 15px; border-radius: 50px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.exam-grid { display: grid; gap: 15px; }
.exam-card { background: var(--white); border-radius: 20px; padding: 20px 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.04); transition: all 0.3s ease; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.exam-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); border-color: rgba(134, 117, 201, 0.4); }
.exam-name { font-size: 16px; font-weight: 600; color: var(--text-blue); margin-bottom: 5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.exam-code { font-size: 11px; color: var(--text-gray); background: #f1f1f1; padding: 3px 8px; border-radius: 6px; font-weight: 500; }
.exam-time { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 50px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.exam-time svg { width: 16px; height: 16px; }
.exam-time.fast { background: #e8f5e9; color: #2e7d32; }
.exam-time.medium { background: var(--bg-cyan-faint); color: var(--text-blue); }
.exam-time.slow { background: var(--bg-purple-light); color: var(--text-purple); }

/* --- Varie Esami --- */
.no-results { display: none; text-align: center; padding: 50px 20px; background: var(--white); border-radius: 20px; margin-top: 30px; border: 1px dashed rgba(0,0,0,0.1); }
.no-results.show { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.info-box { background: var(--bg-cyan-faint); border-radius: 24px; padding: 30px; margin: 40px 0; display: flex; align-items: flex-start; gap: 20px; }
.info-icon { width: 50px; height: 50px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--cyan); box-shadow: 0 5px 15px rgba(0,0,0,0.05); flex-shrink: 0; }
.info-content h3 { color: var(--text-blue); margin-bottom: 10px; font-size: 18px; }
.info-content p { color: var(--text-gray); line-height: 1.6; font-size: 14px; }
.legend { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(0,0,0,0.05); }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-gray); font-weight: 500; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; }
.legend-dot.fast { background: #2e7d32; } .legend-dot.medium { background: var(--text-blue); } .legend-dot.slow { background: var(--text-purple); }

/* --- Preparazione Esami --- */
.preparation-section { padding: 60px 20px; background: var(--white); }
.preparation-container { max-width: 900px; margin: 0 auto; }
.prep-card { background: var(--white); border-radius: 24px; padding: 40px; margin-bottom: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.prep-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.prep-header { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 2px solid var(--bg-cyan-faint); }
.prep-title { font-size: 24px; font-weight: 600; color: var(--text-blue); }
.prep-content { color: var(--text-gray); line-height: 1.8; font-size: 15px; }
.prep-list { list-style: none; margin-top: 15px; }
.prep-list li { padding: 10px 0; padding-left: 30px; position: relative; border-bottom: 1px solid #f5f5f5; }
.prep-list li:before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; }
.highlight-box { background: var(--bg-cyan-faint); border-left: 4px solid var(--cyan); padding: 20px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.highlight-box strong { color: var(--text-blue); display: block; margin-bottom: 10px; }
/* Pulsante Prenota Esami Preparazione */
.btn-prenota {
    display: inline-block;
    background-color: var(--cyan);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: -40px;
    min-width: auto; 
}

.btn-prenota:hover {
    background-color: var(--text-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 94, 184, 0.2);
}
/* --- Check-up --- */
.checkup-section { padding: 60px 20px; background: var(--white); }
.checkup-container { max-width: 1200px; margin: 0 auto; }
.checkup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.checkup-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.checkup-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.checkup-card-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.3s ease; }
.checkup-card:hover .checkup-card-image { filter: grayscale(0%); }
.checkup-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 40%; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%); }
.checkup-brush { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; opacity: 0.9; }
.checkup-card-content { position: relative; z-index: 2; color: white; }
.checkup-card-title { font-size: 22px; font-weight: 600; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.brush-svg { position: absolute; bottom: -1px; left: 0; width: 100%; height: auto; }
.checkup-base .checkup-brush { background: linear-gradient(135deg, #4ecdc4 0%, #44a3aa 100%); clip-path: polygon(0 40%, 100% 20%, 100% 100%, 0% 100%); }
.checkup-donna-giovane .checkup-brush { background: linear-gradient(135deg, #fcc5c9 0%, #d97c95 100%); clip-path: polygon(0 30%, 100% 50%, 100% 100%, 0% 100%); }
.checkup-donna-matura .checkup-brush { background: linear-gradient(135deg, #b56d80 0%, #a15469 100%); clip-path: polygon(0 50%, 100% 30%, 100% 100%, 0% 100%); }
.checkup-uomo-giovane .checkup-brush { background: linear-gradient(135deg, #5bc0de 0%, #46a0bc 100%); clip-path: polygon(0 35%, 100% 45%, 100% 100%, 0% 100%); }
.checkup-uomo-maturo .checkup-brush { background: linear-gradient(135deg, #4a7c9b 0%, #3a5f7a 100%); clip-path: polygon(0 45%, 100% 25%, 100% 100%, 0% 100%); }
.checkup-tiroide .checkup-brush { background: linear-gradient(135deg, #f69259 0%, #e87a3e 100%); clip-path: polygon(0 20%, 100% 40%, 100% 100%, 0% 100%); }
.checkup-cardio .checkup-brush { background: linear-gradient(135deg, #e63946 0%, #d62828 100%); clip-path: polygon(0 40%, 100% 25%, 100% 100%, 0% 100%); }
.checkup-anemia .checkup-brush { background: linear-gradient(135deg, #c1121f 0%, #780000 100%); clip-path: polygon(0 30%, 100% 45%, 100% 100%, 0% 100%); }
.checkup-sport .checkup-brush { background: linear-gradient(135deg, #2a9d8f 0%, #21867a 100%); clip-path: polygon(0 45%, 100% 20%, 100% 100%, 0% 100%); }
.checkup-stanchezza .checkup-brush { background: linear-gradient(135deg, #5c677d 0%, #33415c 100%); clip-path: polygon(0 25%, 100% 50%, 100% 100%, 0% 100%); }
.checkup-mst .checkup-brush { background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%); clip-path: polygon(0 50%, 100% 30%, 100% 100%, 0% 100%); }
.checkup-metabolismo .checkup-brush { background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%); clip-path: polygon(0 35%, 100% 45%, 100% 100%, 0% 100%); }
.info-section { background: var(--bg-cyan-faint); padding: 80px 20px; text-align: center;}
.info-container { max-width: 1000px; margin: 0 auto; }
.info-section h2 { font-size: 32px; font-weight: 300; color: var(--text-blue); margin-bottom: 30px; }
.info-text { font-size: 18px; color: var(--text-gray); line-height: 1.8; }

/* Pulsante Back to Top */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--purple); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 20px rgba(134, 117, 201, 0.4); opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 100; border: none; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px); background: var(--text-purple); }

/* Responsive Extra */
@media (max-width: 1024px) { .checkup-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .checkup-grid { grid-template-columns: 1fr; } .search-filters { flex-direction: column; align-items: stretch; text-align: center; } .exam-card { flex-direction: column; align-items: flex-start; } }
/* =========================================================
   STILI PER LA PAGINA CONTATTI
   ========================================================= */

/* --- Hero Contatti --- */
.contact-hero { padding: 180px 20px 80px; background: linear-gradient(135deg, var(--bg-cyan-faint) 0%, var(--white) 100%); text-align: center; position: relative; }
.contact-hero::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; background: radial-gradient(ellipse, rgba(134, 117, 201, 0.15) 0%, transparent 70%); z-index: 0; filter: blur(30px); border-radius: 50%; }
.contact-hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.contact-hero h1 { font-size: 46px; font-weight: 200; color: var(--text-blue); margin-bottom: 15px; }
.contact-hero p { font-size: 18px; color: var(--text-gray); font-weight: 300; line-height: 1.6; }

/* --- Contatti e Orari (Card Moderne) --- */
:root { --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05); --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1); }
.contact-section { padding: 40px 20px 80px; max-width: 1100px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: start; }
.info-card { background: var(--white); padding: 40px; border-radius: 24px; box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.03); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-title { font-size: 22px; color: var(--text-blue); font-weight: 500; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.info-item { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--bg-purple-light); }
.info-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.icon-box { width: 50px; height: 50px; border-radius: 16px; background: var(--bg-cyan-faint); color: var(--text-blue); display: flex; justify-content: center; align-items: center; flex-shrink: 0; font-size: 24px; }
.icon-box.sun { background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%); color: #f59e0b; }
.icon-box.moon { background: linear-gradient(135deg, rgba(134, 117, 201, 0.1) 0%, rgba(134, 117, 201, 0.05) 100%); color: var(--purple); }
.icon-box svg { width: 24px; height: 24px; stroke-width: 1.5; }
.info-content { flex: 1; }
.info-content h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--purple); margin-bottom: 8px; font-weight: 600; }
.info-content p.contact-text, .info-content a.contact-link { font-size: 18px; color: var(--text-dark); font-weight: 500; text-decoration: none; line-height: 1.5; transition: color 0.2s; display: block; }
.info-content a.contact-link:hover { color: var(--purple); }
.info-content span.sub-text { display: block; font-size: 13px; color: var(--text-gray); font-weight: 400; margin-top: 5px; }
.hours-title { font-size: 16px; color: var(--text-dark); font-weight: 600; margin-bottom: 4px; display: block; }
.hours-days { font-size: 14px; color: var(--text-gray); font-weight: 500; }
.hours-time { font-size: 16px; color: var(--text-blue); font-weight: 600; }

/* --- Sezione Mappa --- */
.map-section { background: var(--bg-cyan-faint); padding: 80px 20px; }
.map-wrapper { background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); height: 450px; position: relative; }
.map-wrapper iframe { width: 100%; height: 100%; border: none; }
.map-overlay { position: absolute; bottom: 30px; left: 30px; background: var(--white); padding: 25px 30px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); max-width: 300px; }
.map-overlay h4 { color: var(--text-blue); margin-bottom: 10px; font-size: 16px; }
.map-overlay p { color: var(--text-gray); font-size: 14px; line-height: 1.5; }
.btn-map { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; padding: 10px 20px; background: var(--purple); color: var(--white); text-decoration: none; border-radius: 50px; font-size: 13px; font-weight: 600; transition: all 0.3s ease; }
.btn-map:hover { background: var(--text-purple); transform: translateY(-2px); }

/* --- Parcheggio e Trasporti --- */
.parking-section { background: var(--white); padding: 80px 20px; }
.parking-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; max-width: 1200px; margin: 0 auto; }
.parking-card { text-align: center; padding: 35px 25px; background: var(--bg-cyan-faint); border-radius: 20px; transition: all 0.3s ease; }
.parking-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.parking-icon { width: 60px; height: 60px; margin: 0 auto 20px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--purple); box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.parking-icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.parking-card h3 { color: var(--text-blue); font-size: 17px; margin-bottom: 10px; font-weight: 600; }
.parking-card p { color: var(--text-gray); font-size: 14px; line-height: 1.5; }

/* --- Emergency Banner --- */
.emergency-banner { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--purple) 100%); padding: 60px 20px; text-align: center; color: var(--white); }
.emergency-content { max-width: 800px; margin: 0 auto; }
.emergency-banner h2 { font-size: 32px; font-weight: 300; margin-bottom: 15px; }
.emergency-banner p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; font-weight: 300; }
.emergency-phone { display: inline-flex; align-items: center; gap: 15px; font-size: 36px; font-weight: 600; color: var(--white); text-decoration: none; background: rgba(255,255,255,0.15); padding: 20px 40px; border-radius: 50px; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.emergency-phone:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }

/* --- Responsive Contatti --- */
@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr; }
    .parking-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .contact-hero { padding-top: 220px; }
    .contact-hero h1 { font-size: 32px; }
    .parking-grid { grid-template-columns: 1fr; }
    .emergency-phone { font-size: 24px; padding: 15px 30px; }
}
/* =========================================================
   NUOVI STILI (Modern Cards Home & Pagina News)
   ========================================================= */

/* --- Home: Modern Cards Esami --- */
.modern-services-section { background-color: var(--white); padding: 90px 20px; }
.modern-services-container { max-width: 1000px; margin: 0 auto; }
.modern-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.modern-service-card { background: var(--white); border: 1px solid rgba(0,0,0,0.06); border-radius: 24px; padding: 40px 35px; text-decoration: none; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); box-shadow: 0 10px 30px rgba(0,0,0,0.02); }

.modern-service-card {
    margin-top: 20px;
}

.modern-service-card .card-description {
    text-align: justify;
}
.modern-service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, var(--bg-cyan-faint) 0%, rgba(255,255,255,0) 100%); opacity: 0; transition: opacity 0.4s ease; z-index: 0; }
.modern-service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(134, 117, 201, 0.12); border-color: rgba(134, 117, 201, 0.3); }
.modern-service-card:hover::before { opacity: 1; }
.modern-service-card > * { position: relative; z-index: 1; }
.card-icon-wrapper { width: 65px; height: 65px; background-color: var(--bg-cyan-faint); border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--text-blue); margin-bottom: 25px; transition: all 0.4s ease; }
.modern-service-card:hover .card-icon-wrapper { background-color: var(--purple); color: var(--white); transform: scale(1.05) rotate(-5deg); }
.card-icon-wrapper svg { width: 32px; height: 32px; stroke-width: 1.5; }
.modern-service-card .card-title { color: var(--text-blue); font-size: 22px; font-weight: 600; margin-bottom: 15px; line-height: 1.2; border: none; padding: 0; }
.card-description { color: var(--text-gray); font-size: 15px; line-height: 1.6; margin-bottom: 30px; }
.card-action { margin-top: auto; display: flex; align-items: center; gap: 8px; color: var(--purple); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.card-action svg { transition: transform 0.3s ease; }
.modern-service-card:hover .card-action svg { transform: translateX(6px); }

/* --- Pagina News Dedicata --- */
.news-page-section { padding: 40px 20px 80px; max-width: 1200px; margin: 0 auto; }
.category-badge { display: inline-block; padding: 6px 14px; border-radius: 50px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.badge-purple { background-color: var(--bg-purple-light); color: var(--text-purple); }
.badge-cyan { background-color: var(--bg-cyan-faint); color: var(--text-blue); }
.badge-blue { background-color: rgba(27, 73, 155, 0.1); color: var(--blue-dark); }
.featured-news-card { display: flex; background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.03); margin-bottom: 50px; transition: all 0.3s ease; text-decoration: none; }
.featured-news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.featured-news-img { flex: 1.2; min-height: 350px; position: relative; overflow: hidden; }
.featured-news-img img { width: 100%; height: 100%; object-fit: contain; background-color: #ffffff; transition: transform 0.5s ease; }
.featured-news-card:hover .featured-news-img img { transform: scale(1.05); }
.featured-news-content { flex: 1; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.news-date { font-size: 13px; color: var(--text-gray); font-weight: 500; display: flex; align-items: center; gap: 6px; margin-bottom: 15px; }
.featured-news-content h2 { font-size: 28px; color: var(--text-blue); font-weight: 500; line-height: 1.3; margin-bottom: 20px; }
.featured-news-content p { color: var(--text-gray); font-size: 15px; line-height: 1.6; margin-bottom: 25px; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--purple); text-transform: uppercase; letter-spacing: 0.5px; transition: gap 0.3s ease; }
.featured-news-card:hover .read-more { gap: 12px; }
.news-card-content { padding: 30px; flex: 1; display: flex; flex-direction: column; }

/* Responsive Nuovi Stili */
@media (max-width: 1024px) {
    .featured-news-card { flex-direction: column; }
    .featured-news-img { min-height: 250px; }
}
@media (max-width: 768px) {
    .modern-services-grid { grid-template-columns: 1fr; }
    .featured-news-content { padding: 30px; }
    .featured-news-content h2 { font-size: 24px; }
}
/* =========================================================
   STILI PER LA PAGINA REFERTI ONLINE
   ========================================================= */
.referti-section { padding: 60px 20px 100px; display: flex; flex-direction: column; align-items: center; }
.access-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 900px; width: 100%; }

.access-card { background: var(--white); border-radius: 24px; padding: 50px 40px; text-align: center; box-shadow: var(--shadow-soft); border: 1px solid rgba(0, 0, 0, 0.04); transition: all 0.4s ease; text-decoration: none; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; }
.access-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: rgba(134, 117, 201, 0.3); }

/* Sfondo leggero all'hover */
.access-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, var(--bg-cyan-faint) 0%, rgba(255,255,255,0) 100%); opacity: 0; transition: opacity 0.4s ease; z-index: 0; }
.access-card:hover::before { opacity: 1; }
.access-card > * { position: relative; z-index: 1; }

.card-icon-large { width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 30px; transition: all 0.4s ease; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.card-medico .card-icon-large { border: 3px solid var(--purple); }
.card-paziente .card-icon-large { border: 3px solid var(--cyan); }
.access-card:hover .card-icon-large { transform: scale(1.1) rotate(-5deg); }

/* NESSUN FILTRO QUI: Le tue immagini si vedranno con i loro colori originali! */
.card-icon-large img { width: 75px; height: 75px; object-fit: contain; }

.access-card h2 { font-size: 24px; font-weight: 600; margin-bottom: 15px; color: var(--text-blue); }
.access-card p { color: var(--text-gray); font-size: 15px; line-height: 1.6; margin-bottom: 30px; }

.card-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 35px; border-radius: 50px; color: var(--white); font-weight: 600; font-size: 14px; text-transform: uppercase; transition: all 0.3s ease; margin-top: auto; }
.card-medico .card-btn { background-color: var(--purple); }
.card-paziente .card-btn { background-color: var(--cyan); }
.access-card:hover .card-btn { transform: scale(1.05); }

.info-box-referti { margin-top: 40px; background: var(--white); padding: 25px 35px; border-radius: 16px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04); display: flex; align-items: center; gap: 20px; max-width: 700px; width: 100%; border: 1px solid rgba(0, 0, 0, 0.04); }
display: flex; align-items: center; gap: 20px; max-width: 800px; border: 1px solid rgba(0, 0, 0, 0.04); }
.info-icon-small { width: 50px; height: 50px; background: var(--bg-cyan-faint); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-blue); flex-shrink: 0; }
.info-box-referti p { color: var(--text-gray); font-size: 14px; line-height: 1.6; margin: 0; text-align: left; }
.info-box-referti strong { color: var(--text-blue); display: block; margin-bottom: 5px; font-weight: 600; }

@media (max-width: 768px) {
    .access-cards { grid-template-columns: 1fr; gap: 25px; }
    .access-card { padding: 40px 30px; }
    .info-box-referti { flex-direction: column; text-align: center; padding: 25px; }
    .info-box-referti p { text-align: center; }
}
/* =========================================================
   STILI PER PAGINE LOGIN (Medici e Pazienti)
   ========================================================= */

.login-page-wrapper { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 160px 20px 80px; /* 160px serve per non finire sotto l'header fisso! */
    background-color: var(--bg-cyan-faint); 
    min-height: 80vh; 
}

.login-container { 
    width: 100%; 
    max-width: 480px; 
}

.back-link-login {
    /* Mantiene il posizionamento originale */
    position: absolute;
    top: 130px; 
    left: 50px; 
    
    /* Nuovo stile grafico a "pillola" */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--white);
    color: var(--text-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(0, 94, 184, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.back-link-login:hover {
    color: var(--blue-dark);
    transform: translateY(-3px); /* Effetto sollevamento */
    box-shadow: 0 10px 25px rgba(0, 94, 184, 0.1); /* Ombra più pronunciata */
}
.login-header { text-align: center; margin-bottom: 40px; }
.login-header h1 { font-size: 36px; font-weight: 300; color: var(--text-blue); margin-bottom: 10px; }
.login-header p { color: var(--text-gray); font-size: 16px; }

.login-card-form { 
    background: var(--white); border-radius: 24px; padding: 50px 40px; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06); border: 1px solid rgba(0, 0, 0, 0.04); text-align: center; 
}

.login-icon-wrap { 
    width: 90px; height: 90px; border-radius: 50%; display: flex; 
    align-items: center; justify-content: center; margin: 0 auto 30px auto; 
    background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Niente filtro: manteniamo i colori originali delle tue immagini */
.login-icon-wrap img { width: 55px; height: 55px; object-fit: contain; }

/* Bordino colorato invece dello sfondo pieno */
.icon-medico { border: 3px solid var(--purple); }
.icon-paziente { border: 3px solid var(--cyan); }
.form-group { margin-bottom: 25px; text-align: left; }
.form-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text-dark); margin-left: 5px; }
.form-input { 
    width: 100%; padding: 15px 20px; border: 2px solid #eef0f5; border-radius: 12px; 
    font-size: 15px; color: var(--text-dark); background-color: #fafbfc; transition: all 0.3s; outline: none; 
}
.form-input:focus { background-color: var(--white); }
.input-medico:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(134, 117, 201, 0.1); }
.input-paziente:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(123, 193, 201, 0.15); }

.submit-btn-login { 
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; 
    padding: 16px; border-radius: 50px; color: var(--white); font-weight: 600; font-size: 15px; 
    text-transform: uppercase; border: none; cursor: pointer; transition: all 0.3s; margin-top: 10px; 
}
.btn-login-medico { background-color: var(--purple); }
.btn-login-medico:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(134, 117, 201, 0.4); }
.btn-login-paziente { background-color: var(--cyan); }
.btn-login-paziente:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(123, 193, 201, 0.4); }

@media (max-width: 768px) {
    .login-card-form { padding: 40px 30px; }
}
/* =========================================================
   STILI PER LA PAGINA PRENOTAZIONE
   ========================================================= */

/* Hero Prenotazione */
/* =========================================================
   HERO PRENOTAZIONE - STILE MODERNO E PULITO (NO ZOOM)
   ========================================================= */
.booking-hero { 
    position: relative; 
    /* Altezza fissa ma elastica in base allo schermo */
    height: 65vh; 
    min-height: 550px; 
    
    /* Spinge il contenuto in giÃ¹, lontano dall'header fisso */
    padding-top: 170px; 
    
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start; /* Mantiene il testo in alto */
    text-align: center; 
    
    /* GIOCO DI LIVELLI: 
       1. L'immagine dei dispositivi
       2. Sfumatura verso il bianco in basso (per unirsi alla griglia sotto)
       3. Sfondo morbidissimo azzurro/polvere al centro */
    background-image: 
        url('news/NEWS_notebook_smartphone.png'),
        linear-gradient(to bottom, rgba(255,255,255,0) 85%, #ffffff 100%),
        radial-gradient(circle at center 30%, var(--bg-cyan-faint) 0%, #ffffff 80%);
    
    /* Posizioniamo l'immagine in BASSO AL CENTRO */
    background-position: 
        center bottom,
        center bottom,
        center top;
        
    background-repeat: no-repeat;
    
    /* LA MAGIA CHE RISOLVE TUTTO: 
       auto 60% dice al browser "L'immagine deve occupare al massimo il 60% dell'altezza della sezione, 
       e la larghezza si adatta da sola". CosÃ¬ non toccherÃ  MAI l'header e non sarÃ  MAI tagliata/zoomata. */
    background-size: 
        auto 60%, 
        100% 100%, 
        100% 100%; 
}

.booking-hero h1 { 
    font-size: 46px; 
    font-weight: 300; 
    color: var(--purple); 
    margin: 0; 
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}

/* Gestione per i dispositivi mobili e tablet */
@media (max-width: 992px) {
    .booking-hero {
        height: 50vh;
        min-height: 450px;
        padding-top: 140px;
        background-size: auto 55%, 100% 100%, 100% 100%; /* Immagine leggermente piÃ¹ piccola per far spazio */
    }
}

@media (max-width: 768px) {
    .booking-hero {
        height: 45vh;
        min-height: 380px;
        padding-top: 120px;
        /* Su mobile gli schermi sono stretti, quindi diciamo all'immagine di occupare il 90% della LARGHEZZA, l'altezza si adatta */
        background-size: 90% auto, 100% 100%, 100% 100%; 
    }
    .booking-hero h1 { 
        font-size: 34px; 
    }
}
/* Griglia Prenotazioni */
.booking-section { background-color: var(--white); padding: 80px 20px; }
.booking-container { max-width: 1200px; margin: 0 auto; }
.booking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.booking-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1; cursor: pointer; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: block; }
.booking-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.booking-card-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.3s ease; }
.booking-card:hover .booking-card-image { filter: grayscale(0%); }
.booking-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 40%; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%); }
.booking-card-content { position: relative; z-index: 2; color: white; }
.booking-card-title { font-size: 22px; font-weight: 600; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.3); margin-bottom: 5px; }
.booking-card-subtitle { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.9); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* Colori specifici pennellate */
.booking-salta-coda .brush-svg path:nth-child(1) { fill: #4ecdc4; } .booking-salta-coda .brush-svg path:nth-child(2) { fill: #44a3aa; }
.booking-domicilio .brush-svg path:nth-child(1) { fill: #8675c9; } .booking-domicilio .brush-svg path:nth-child(2) { fill: #5c4b99; }
.booking-genetici .brush-svg path:nth-child(1) { fill: #fcc5c9; }
.booking-genetici .brush-svg path:nth-child(2) { fill: #d97c95; } { fill: #46a0bc; }
.booking-spermiogramma .brush-svg path:nth-child(1) { fill: #8cc2e0; } .booking-spermiogramma .brush-svg path:nth-child(2) { fill: #5d9bc2; }
.booking-lattosio .brush-svg path:nth-child(1) { fill: #e63946; } .booking-lattosio .brush-svg path:nth-child(2) { fill: #d62828; }

/* Come Funziona */
.how-it-works { background-color: #f8f9fc; padding: 80px 20px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1000px; margin: 0 auto; }
.step-card { text-align: center; padding: 20px; }
.step-number { width: 40px; height: 40px; background: var(--purple); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; margin: 0 auto 20px; }
.step-card h3 { color: var(--text-blue); font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.step-card p { color: var(--text-gray); font-size: 14px; line-height: 1.6; }

/* Responsive Prenotazione */
@media (max-width: 1024px) { .booking-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .booking-hero { padding-top: 180px; } .booking-grid { grid-template-columns: 1fr; } .steps-grid { grid-template-columns: 1fr; } }
/* =========================================================
   STILI PER LE SINGOLE PAGINE DI PRENOTAZIONE (Es. Salta La Coda)
   ========================================================= */

.booking-single-hero { 
    position: relative; min-height: 40vh; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; text-align: center; padding: 150px 20px 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.95) 100%), 
                url('prenotazione/sfondo_booking.png') center/cover; 
}
.booking-single-hero h1 { font-size: 36px; font-weight: 200; color: var(--text-dark); margin-bottom: 10px; }
.booking-single-hero p { font-size: 16px; font-weight: 300; color: var(--text-gray); }

.booking-page-section { padding: 60px 20px; background-color: var(--bg-cyan-faint); }
.booking-form-container { max-width: 850px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); }

/* Testo e Card Informativi */
.service-intro { margin-bottom: 40px; }
.service-intro > p { color: var(--text-gray); line-height: 1.7; margin-bottom: 25px; font-size: 15px; }

.how-it-works-list { margin-bottom: 35px; }
.how-it-works-list h3 { color: var(--text-blue); font-size: 18px; font-weight: 600; margin-bottom: 15px; }
.how-it-works-list ul { list-style: none; }
.how-it-works-list li { color: var(--text-gray); font-size: 15px; margin-bottom: 12px; padding-left: 30px; position: relative; line-height: 1.5; }
.how-it-works-list li::before { 
    content: 'âœ“'; position: absolute; left: 0; top: 0; color: var(--white); 
    background-color: var(--purple); width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold;
}

.info-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
/* --- Nuove Modern Info Cards (Salta la Coda) --- */
.modern-info-card { 
    background: var(--white); 
    border-radius: 20px; 
    padding: 30px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); 
    border: 1px solid rgba(0, 0, 0, 0.05); 
    transition: all 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}
.modern-info-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); 
}
.modern-info-card .card-header { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}
.modern-info-card .custom-icon { 
    width: 45px; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 14px; 
    flex-shrink: 0; 
}
.modern-info-card strong { 
    font-size: 16px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin: 0;
}
.modern-info-card p { 
    color: var(--text-gray); 
    font-size: 14px; 
    line-height: 1.6; 
    margin: 0 !important; /* Forza la rimozione dei margini ereditati */
}

/* Stile Specifico "Importante" */
.alert-card { border-top: 4px solid #e53e3e; }
.alert-card:hover { border-color: #c53030; }
.alert-card .emoji-icon { background: #fff5f5; }
.alert-card strong { color: #e53e3e; }

/* Stile Specifico "PiÃ¹ prelievi" */
.notice-card { border-top: 4px solid var(--text-blue); }
.notice-card:hover { border-color: var(--blue-dark); }
.notice-card .emoji-icon { background: var(--bg-cyan-faint); }
.notice-card strong { color: var(--text-blue); }

/* Separatore e Form */
.form-separator { height: 1px; background: #eee; margin: 40px 0; position: relative; }
.form-separator span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--white); padding: 0 15px; color: var(--text-gray); font-weight: 500; font-size: 14px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; text-align: left; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--text-blue); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 15px; border: 1px solid #ddd; border-radius: 12px; font-size: 15px; font-family: 'Montserrat', sans-serif; transition: all 0.3s; background-color: #fcfcfc; outline: none; }
.form-group input:focus, .form-group select:focus { border-color: var(--cyan); background-color: var(--white); box-shadow: 0 0 0 4px rgba(123, 193, 201, 0.15); }

.btn-submit { background: var(--cyan); color: white; border: none; padding: 18px; border-radius: 50px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; width: 100%; text-transform: uppercase; margin-top: 10px; letter-spacing: 1px; }
.btn-submit:hover { background: #62aeb7; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(123, 193, 201, 0.3); }

/* Responsive */
@media (max-width: 768px) { 
    .form-row { grid-template-columns: 1fr; } 
    .info-cards-grid { grid-template-columns: 1fr; }
    .booking-form-container { padding: 25px; }
}
/* Stile Specifico "Importante" */
.alert-card { border-top: 4px solid #e53e3e; }
.alert-card:hover { border-color: #c53030; }
.alert-card .custom-icon { background: #fff5f5; color: #e53e3e; } /* Qui applichiamo il rosso all'icona SVG */
.alert-card strong { color: #e53e3e; }

/* Stile Specifico "PiÃ¹ prelievi" */
.notice-card { border-top: 4px solid var(--text-blue); }
.notice-card:hover { border-color: var(--blue-dark); }
.notice-card .custom-icon { background: var(--bg-cyan-faint); color: var(--text-blue); } /* Qui applichiamo il blu all'icona SVG */
.notice-card strong { color: var(--text-blue); }
/* =========================================================
   STILI PER LE PAGINE DI PRENOTAZIONE (Form e Dinamiche)
   ========================================================= */

/* Hero Pagine Singole */
.booking-single-hero { position: relative; min-height: 40vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 150px 20px 50px; background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(240, 248, 251, 1) 100%), url('prenotazione/sfondo_booking.png') center/cover; }
.booking-single-hero h1 { font-size: 36px; font-weight: 200; color: var(--text-dark); margin-bottom: 10px; }
.booking-single-hero p { font-size: 16px; font-weight: 300; color: var(--text-gray); max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* Contenitori e Sezioni */
.booking-page-section { padding: 60px 20px; background-color: var(--bg-cyan-faint); min-height: 50vh;}
.booking-form-container { max-width: 850px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); }

/* Modulo Dinamico Domicilio (Step 1 e Step 2) */
#step1-selection .section-heading { text-align: center; margin-bottom: 40px; }
#step1-selection .section-heading h2 { font-size: 24px; font-weight: 400; color: var(--text-blue); margin-bottom: 10px; }
.form-section { display: none; opacity: 0; transition: opacity 0.5s ease; background: var(--white); padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-section.active { display: block; opacity: 1; animation: fadeIn 0.5s forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Bottoni di navigazione interna */
.btn-back { background: none; border: none; color: var(--text-gray); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; transition: color 0.3s; padding: 0; }
.btn-back:hover { color: var(--purple); }

/* Testi e Card Informativi */
.service-intro { margin-bottom: 40px; }
.service-intro > p { color: var(--text-gray); line-height: 1.7; margin-bottom: 25px; font-size: 15px; }
.how-it-works-list { margin-bottom: 35px; }
.how-it-works-list h3 { color: var(--text-blue); font-size: 18px; font-weight: 600; margin-bottom: 15px; }
.how-it-works-list ul { list-style: none; }
.how-it-works-list li { color: var(--text-gray); font-size: 15px; margin-bottom: 12px; padding-left: 30px; position: relative; line-height: 1.5; }
.how-it-works-list li::before { content: 'âœ“'; position: absolute; left: 0; top: 0; color: var(--white); background-color: var(--purple); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; }

.info-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.custom-info-card { padding: 25px 20px; border-radius: 16px; font-size: 14px; line-height: 1.6; position: relative; overflow: hidden; }
.custom-info-card strong { display: block; margin-bottom: 8px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
.card-alert { background: #fff5f5; border: 1px solid #fed7d7; color: #4a5568; }
.card-alert strong { color: #e53e3e; }
.card-alert::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background-color: #e53e3e; }
.card-info { background: var(--bg-cyan-faint); border: 1px solid rgba(123, 193, 201, 0.3); color: #4a5568; }
.card-info strong { color: var(--text-blue); }
.card-info::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background-color: var(--text-blue); }

/* Form e Input */
.form-separator { height: 1px; background: #eee; margin: 40px 0; position: relative; }
.form-separator span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--white); padding: 0 15px; color: var(--text-gray); font-weight: 500; font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; text-align: left; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text-blue); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 15px; border: 1px solid #ddd; border-radius: 12px; font-size: 15px; font-family: 'Montserrat', sans-serif; transition: all 0.3s; background-color: #fcfcfc; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--cyan); background-color: var(--white); box-shadow: 0 0 0 4px rgba(123, 193, 201, 0.15); }
.btn-submit { background: var(--cyan); color: white; border: none; padding: 18px; border-radius: 50px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; width: 100%; text-transform: uppercase; margin-top: 10px; letter-spacing: 1px; }
.btn-submit:hover { background: #62aeb7; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(123, 193, 201, 0.3); }

/* Responsive Form */
@media (max-width: 768px) { 
    .form-row { grid-template-columns: 1fr; } 
    .info-cards-grid { grid-template-columns: 1fr; }
    .booking-form-container, .form-section { padding: 25px; }
}
/* =========================================================
   NUOVA MEDIA QUERY PER TABLET (2 colonne su schermi medi)
   ========================================================= */
@media (min-width: 769px) and (max-width: 1024px) {
    .modern-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* =========================================================
   FIX CARD DOMICILIO - Altezza più compatta
   ========================================================= */

/* Sovrascrivi le card della pagina domicilio per renderle piÃ¹ quadrate */
.booking-page-section .modern-services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

.booking-page-section .modern-service-card {
    padding: 30px 25px;
    min-height: 280px;
    max-height: 320px;
    justify-content: center;
    text-align: center;
}

.booking-page-section .card-icon-wrapper {
    width: 55px;
    height: 55px;
    margin: 0 auto 20px auto;
}

.booking-page-section .card-icon-wrapper svg {
    width: 26px;
    height: 26px;
}

.booking-page-section .card-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.booking-page-section .card-description {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive: su tablet e mobile tornano a colonna singola */
@media (max-width: 1024px) {
    .booking-page-section .modern-services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .booking-page-section .modern-service-card {
        min-height: auto;
        max-height: none;
        padding: 35px 30px;
    }
}
/* Nuovo stile pulsante Indietro - Pagina Domicilio */
.btn-back-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    color: var(--text-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(0, 94, 184, 0.2);
    transition: all 0.3s ease;
}

.btn-back-outline:hover {
    background: var(--white);
    border-color: var(--text-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
/* =========================================================
   FIX AMELIA BOOKING FORMS IN TAB NASCOSTI
   ========================================================= */
.amelia-hidden-container {
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0;
    position: absolute; /* Evita che creino spazio vuoto quando sono nascosti */
    width: 100%;
    z-index: -10;
}

.amelia-visible-container {
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1;
    position: relative;
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* =========================================================
   STILI PER LA PAGINA CHI SIAMO (MODERNIZZATI)
   ========================================================= */

.team-hero {
    position: relative; min-height: 70vh; display: flex; flex-direction: column; padding-top: 120px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.95) 100%), 
                url('https://images.unsplash.com/photo-1581093458791-9f3c3900df4b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
}
.team-hero-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; position: relative; z-index: 10; }
.team-title { font-size: 46px; font-weight: 200; color: var(--text-dark); line-height: 1.2; margin-bottom: 60px; letter-spacing: -1px; }

/* --- Info Cards (Valori) - Stile Moderno --- */
.valori-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; max-width: 1150px; margin: 0 auto 50px auto; position: relative; z-index: 10; }

.valori-card { 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(20px); 
    padding: 45px 40px; 
    border-radius: 30px; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04); 
    border: 1px solid rgba(255, 255, 255, 1); 
    text-align: left; /* Testo a sinistra molto piÃ¹ elegante */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    display: flex; flex-direction: column; align-items: flex-start; 
}

.valori-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 25px 50px rgba(134, 117, 201, 0.12); 
    background: #ffffff;
}

.valori-icon { 
    color: var(--cyan); 
    width: 60px; height: 60px; 
    background: var(--bg-cyan-faint);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px; 
    transition: all 0.4s ease;
}
.valori-icon svg { width: 30px; height: 30px; stroke-width: 1.5; }

.valori-card:hover .valori-icon {
    background: var(--cyan);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.valori-card h3 { color: var(--text-blue); font-size: 22px; font-weight: 600; margin-bottom: 15px; }
.valori-card p { color: var(--text-gray); font-size: 15px; line-height: 1.7; margin: 0; }

/* --- Sezione Team --- */
.team-section { background-color: #fafbfc; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; }
.team-container { max-width: 1100px; width: 100%; }

/* --- Card Direzione "Premium" --- */
.director-card { 
    background: linear-gradient(135deg, #ffffff 0%, #f4f6fa 100%); 
    padding: 50px; 
    border-radius: 30px; 
    box-shadow: 0 20px 50px rgba(27, 73, 155, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.8); 
    display: flex; gap: 40px; align-items: center; text-align: left; 
    margin-bottom: 70px; position: relative; overflow: hidden; 
    transition: transform 0.3s;
}
.director-card:hover { transform: translateY(-5px); }

.director-card::before { 
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; 
    background: linear-gradient(180deg, var(--text-blue), var(--cyan)); 
}

.director-icon { 
    width: 100px; height: 100px; 
    background-color: var(--white); color: var(--text-blue); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.06); flex-shrink: 0;
}
.director-icon svg { width: 45px; height: 45px; stroke-width: 1.2; }

.director-content h4 { color: var(--text-gray); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; font-weight: 600; }
.director-content h3 { font-size: 32px; color: var(--text-blue); margin-bottom: 15px; font-weight: 300; }
.director-badge { display: inline-block; background: var(--bg-purple-light); color: var(--text-purple); padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.director-content p { color: var(--text-gray); font-size: 16px; line-height: 1.8; margin: 0; }

/* --- Griglia Team --- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.team-member-card { 
    background: var(--white); padding: 35px 30px; border-radius: 24px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.04); 
    display: flex; flex-direction: column; align-items: flex-start; text-align: left; 
    transition: all 0.3s ease; position: relative;
}
.team-member-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 40px rgba(134, 117, 201, 0.1); 
    border-color: rgba(134, 117, 201, 0.3); 
}

.team-member-card h3 { font-size: 18px; color: var(--text-blue); margin-bottom: 15px; font-weight: 600; line-height: 1.3; }

/* Badge colorati per i ruoli */
.role-badge { display: inline-block; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; margin-top: auto; }
.badge-blue { background-color: rgba(27, 73, 155, 0.08); color: var(--text-blue); }
.badge-purple { background-color: var(--bg-purple-light); color: var(--text-purple); }
.badge-cyan { background-color: var(--bg-cyan-faint); color: #0f766e; }
.badge-red { background-color: #fef2f2; color: #dc2626; }
.badge-gray { background-color: #f1f5f9; color: #475569; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .director-card { flex-direction: column; text-align: center; align-items: center; padding: 40px 20px; }
    .director-card::before { width: 100%; height: 8px; left: 0; top: 0; bottom: auto; background: linear-gradient(90deg, var(--text-blue), var(--cyan)); }
}

@media (max-width: 768px) {
    .valori-cards, .team-grid { grid-template-columns: 1fr; }
    .valori-card { align-items: center; text-align: center; }
    .team-member-card { align-items: center; text-align: center; }
}

/* =========================================================
   STILI PER LA PAGINA AREA GENETICA
   ========================================================= */

/* Hero Area Genetica */
.genetics-hero { 
    position: relative; min-height: auto; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; text-align: center; padding: 120px 20px 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.95) 100%), 
                url('https://images.unsplash.com/photo-1530026405186-ed1f139313f8?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
}
.genetics-hero h1 { font-size: 42px; font-weight: 200; color: var(--text-blue); line-height: 1.2; margin-bottom: 15px; max-width: 900px; }
.genetics-hero p { font-size: 20px; font-weight: 300; color: var(--text-dark); margin-bottom: 30px; max-width: 800px; line-height: 1.6; }

/* Pulsante Consulenza in Hero */
.hero-cta { margin-bottom: 60px; z-index: 10; position: relative;}
.btn-consultation { 
    background: linear-gradient(90deg, var(--purple), var(--blue-light)); color: var(--white); 
    padding: 18px 40px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 14px; 
    text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 12px; 
    box-shadow: 0 10px 25px rgba(134, 117, 201, 0.3); transition: all 0.3s ease; 
}
.btn-consultation:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(134, 117, 201, 0.4); filter: brightness(1.1); }

/* Rimuove padding superiore dalla griglia Test Genetici per continuitÃ  con la Hero */
.genetics-services-section { padding-top: 0; }

/* Sezione Il Percorso (Process) */
.process-section { background-color: #f8f9fc; padding: 80px 20px; display: flex; justify-content: center; }
.process-container { max-width: 1200px; width: 100%; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
@media (min-width: 769px) {
    .process-grid::before { 
        content: ''; position: absolute; top: 85px; left: 15%; right: 15%; 
        height: 2px; background: dashed 2px var(--purple); z-index: 0; opacity: 0.3; 
    }
}
.process-card { background: var(--white); padding: 35px 30px; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; z-index: 1; }
.process-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(134, 117, 201, 0.1); }
.process-number { width: 45px; height: 45px; background-color: var(--purple); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; margin-bottom: 20px; border: 4px solid #f8f9fc; }
.process-card h3 { font-size: 18px; color: var(--text-blue); margin-bottom: 15px; font-weight: 600; }
.process-card p { color: var(--text-gray); font-size: 14px; line-height: 1.6; }

/* Responsive Area Genetica */
@media (max-width: 1024px) { .process-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .genetics-hero h1 { font-size: 28px; } }
/* =========================================================
   STILI PER PRENOTAZIONE LATTOSIO E SPERMIOGRAMMA
   ========================================================= */

/* Hero Specifiche (usa classi differenziate per l'immagine di sfondo) */
.hero-lattosio {
    background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.95)), url('https://images.unsplash.com/photo-1550583724-b2692b85b150?w=2000') center/cover;
}
.hero-spermiogramma {
    background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.95)), url('https://images.unsplash.com/photo-1576086213369-97a306d36557?w=2000') center/cover;
}

/* Moduli di Prenotazione Semplici */
.simple-form-container { 
    max-width: 800px; 
    margin: 40px auto 80px auto; 
    background: var(--white); 
    padding: 40px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

/* Alert Boxes */
.alert-lattosio { 
    background: #f8d7da; border-left: 4px solid #dc3545; padding: 15px; 
    margin-bottom: 20px; font-size: 14px; color: #721c24; line-height: 1.6;
}
.alert-spermiogramma { 
    background: #fff3cd; border-left: 4px solid #ffc107; padding: 15px; 
    margin-bottom: 20px; font-size: 14px; color: #856404; line-height: 1.6;
}

/* Bottoni Submit Specifici */
.btn-submit-lattosio { background: #d62828; color: white; border: none; padding: 15px; border-radius: 50px; font-weight: 600; cursor: pointer; width: 100%; margin-top: 10px; transition: all 0.3s; text-transform: uppercase; }
.btn-submit-lattosio:hover { background: #a81c1c; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(214, 40, 40, 0.4); }

.btn-submit-spermiogramma { background: #e76f51; color: white; border: none; padding: 15px; border-radius: 50px; font-weight: 600; cursor: pointer; width: 100%; margin-top: 10px; transition: all 0.3s; text-transform: uppercase; }
.btn-submit-spermiogramma:hover { background: #c55d42; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(231, 111, 81, 0.4); }

@media (max-width: 768px) {
    .simple-form-container { padding: 25px; margin: 20px 20px 60px 20px;}
}
/* ============================================
   NASCONDI "Servizio:", "Dipendente:" e "Sede:" 
   nella pagina di conferma di Amelia
   ============================================ */

/* Nascondi la riga SERVIZIO */
.am-fs__congrats-info-app-service,
div[class*="congrats-info-app-service"] {
    display: none !important;
    visibility: hidden !important;
}

/* Nascondi la riga DIPENDENTE */
.am-fs__congrats-info-app-employee,
div[class*="congrats-info-app-employee"] {
    display: none !important;
    visibility: hidden !important;
}

/* Nascondi la riga SEDE */
.am-fs__congrats-info-app-location,
div[class*="congrats-info-app-location"] {
    display: none !important;
    visibility: hidden !important;
}

/* Nascondi la riga DIPENDENTE */
.am-fs__congrats-info-app-employee,
div[class*="congrats-info-app-employee"] {
    display: none !important;
    visibility: hidden !important;
}

/* Nascondi la riga SEDE */
.am-fs__congrats-info-app-location,
div[class*="congrats-info-app-location"] {
    display: none !important;
    visibility: hidden !important;
}

/* Selettore alternativo piÃ¹ robusto */
.amelia-v2-booking .am-fs__congrats-info > div:has(> div:first-child:contains("Dipendente")),
.amelia-v2-booking .am-fs__congrats-info > div:has(> div:first-child:contains("Sede")) {
    display: none !important;
}
/* =========================================================
   STILI PER LA PAGINA CHECK-UP ANEMIA
   ========================================================= */

:root {
    --anemia-red: #c1121f;
    --anemia-red-dark: #780000;
    --anemia-red-light: #e63946;
}

.hero-checkup-detail {
    padding: 160px 20px 60px; /* Aumentato padding top per non finire sotto l'header fisso */
    background-color: var(--white);
    display: flex;
    justify-content: center;
}

.hero-detail-wrapper {
    position: relative;
    width: 100%;
    max-width: 1300px;
    background-color: #ebf0f4;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    min-height: 500px;
}

.hero-detail-content {
    flex: 1;
    padding: 60px 40px 60px 60px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 70%;
}

.hero-detail-text .title-primary {
    font-size: 65px;
    font-weight: 700;
    color: var(--anemia-red);
    line-height: 1;
    margin: 0;
    letter-spacing: -1.5px;
}

.hero-detail-text .title-secondary {
    font-size: 50px;
    font-weight: 700;
    color: var(--anemia-red);
    margin-bottom: 25px;
    line-height: 1;
    white-space: nowrap;
}

.hero-detail-text .subtitle {
    font-size: 32px;
    font-weight: 300;
    color: #444;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-detail-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

.hero-detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        #ebf0f4 0%,               
        #ebf0f4 5%,               
        rgba(235, 240, 244, 0.9) 25%, 
        rgba(235, 240, 244, 0.6) 50%, 
        rgba(235, 240, 244, 0.2) 80%, 
        transparent 100%          
    );
    z-index: 2;
    pointer-events: none;
}

.hero-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.brush-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23e63946' fill-opacity='0.7' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%23c1121f' fill-opacity='0.9' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 60px 40px 30px 60px;
}

.brush-banner-text {
    color: white;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    max-width: 600px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.packages-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--bg-cyan-faint) 0%, var(--white) 100%);
}

.packages-container {
    max-width: 1200px;
    margin: 0 auto;
}

.packages-header {
    text-align: center;
    margin-bottom: 60px;
}

.packages-header p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.6;
}

.packages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.package-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--anemia-red-light);
    text-align: center;
    width: 380px;
    max-width: 100%;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(193, 18, 31, 0.25);
}

.package-card.featured {
    border-top: 4px solid var(--anemia-red-dark);
    transform: scale(1.05);
}

.package-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.package-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--anemia-red-dark);
    color: white;
    padding: 8px 45px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    z-index: 10;
}

.package-title { font-size: 24px; font-weight: 600; color: var(--text-dark); margin-bottom: 15px; }
.package-description { font-size: 14px; color: var(--text-gray); line-height: 1.6; margin-bottom: 25px; }

.package-list { list-style: none; margin-bottom: 30px; display: inline-block; text-align: left; }
.package-list li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 14px; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.package-list li::before { content: '\2713'; color: var(--anemia-red-dark); font-weight: bold; }

.package-price { font-size: 32px; font-weight: 600; color: var(--anemia-red-dark); margin-bottom: 20px; }
.package-price span { font-size: 14px; color: var(--text-gray); font-weight: 400; }

@media (max-width: 900px) {
    .hero-detail-wrapper { flex-direction: column; min-height: auto; }
    .hero-detail-content { max-width: 100%; padding: 40px 20px; }
    .hero-detail-image { position: relative; width: 100%; height: 350px; }
    .hero-detail-image::before {
        background: linear-gradient(to bottom, #ebf0f4 0%, #ebf0f4 5%, rgba(235, 240, 244, 0.9) 25%, rgba(235, 240, 244, 0.6) 50%, rgba(235, 240, 244, 0.2) 80%, transparent 100%);
    }
    .brush-banner { width: 100%; bottom: 0; padding: 40px 20px; background-image: none; background-color: var(--anemia-red); }
    .hero-detail-text .title-primary { font-size: 45px; }
    .hero-detail-text .title-secondary { font-size: 35px; }
    white-space: normal; }
    .hero-detail-text .subtitle { font-size: 24px; }
}

@media (max-width: 1024px) {
    .package-card.featured { transform: scale(1); }
    .package-card.featured:hover { transform: scale(1) translateY(-10px); }
}
/* =========================================================
   STILI PER LA PAGINA CHECK-UP BASE
   ========================================================= */

:root {
    --base-teal: #4ecdc4;
    --base-teal-dark: #44a3aa;
}

/* Colori testi Hero */
.page-checkup-base .hero-detail-text .title-primary,
.page-checkup-base .hero-detail-text .title-secondary {
    color: #75c5c6;
}

/* FIX: Sposta l'immagine per mostrare le persone in basso (Messo fuori dal media query per funzionare anche su PC) */
.page-checkup-base .hero-detail-image img {
    object-position: center bottom; 
}

/* Colore mascherina immagine mobile */
@media (max-width: 900px) {
    .page-checkup-base .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-checkup-base .brush-banner {
        background-color: #75c5c6;
    }
}

/* Spennellata SVG verde acqua */
.page-checkup-base .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2389cfcf' fill-opacity='0.7' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%2375c5c6' fill-opacity='0.9' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* Colori Pacchetti Base */
.page-checkup-base .package-card { border-top-color: var(--base-teal); }
.page-checkup-base .package-card.featured { border-top-color: var(--base-teal-dark); }
.page-checkup-base .package-badge { background: var(--base-teal-dark); }
.page-checkup-base .package-list li::before { color: var(--base-teal-dark); }
.page-checkup-base .package-price { color: var(--base-teal-dark); }/* =========================================================
   STILI PER LA PAGINA CHECK-UP CARDIOVASCOLARE
   ========================================================= */

:root {
    --cardio-red: #e63946;
    --cardio-red-dark: #d62828;
    --cardio-red-light: #f4a4a8;
}

/* Colori testi Hero */
.page-checkup-cardiovascolare .hero-detail-text .title-primary,
.page-checkup-cardiovascolare .hero-detail-text .title-secondary {
    color: var(--cardio-red);
}

/* Colore mascherina immagine mobile */
@media (max-width: 900px) {
    .page-checkup-cardiovascolare .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-checkup-cardiovascolare .brush-banner {
        background-color: var(--cardio-red);
    }
}

/* Spennellata SVG rossa */
.page-checkup-cardiovascolare .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23f4a4a8' fill-opacity='0.7' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%23e63946' fill-opacity='0.9' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* Colori Pacchetti Cardiovascolare */
.page-checkup-cardiovascolare .package-card { border-top-color: var(--cardio-red-light); }
.page-checkup-cardiovascolare .package-card.featured { border-top-color: var(--cardio-red-dark); }
.page-checkup-cardiovascolare .package-badge { background: var(--cardio-red-dark); }
.page-checkup-cardiovascolare .package-list li::before { color: var(--cardio-red-dark); }
.page-checkup-cardiovascolare .package-price { color: var(--cardio-red-dark); }
/* =========================================================
   STILI PER LA PAGINA CHECK-UP DONNA 50 PLUS
   ========================================================= */

:root {
    --donna50-rosa: #b56d80;
    --donna50-rosa-dark: #a15469;
    --donna50-rosa-light: #d97c95;
}

/* Colori testi Hero */
.page-checkup-donna-50-plus .hero-detail-text .title-primary,
.page-checkup-donna-50-plus .hero-detail-text .title-secondary {
    color: var(--donna50-rosa);
}

/* Colore mascherina immagine mobile */
@media (max-width: 900px) {
    .page-checkup-donna-50-plus .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-checkup-donna-50-plus .brush-banner {
        background-color: var(--donna50-rosa);
    }
}

/* Spennellata SVG rosa */
.page-checkup-donna-50-plus .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23d97c95' fill-opacity='0.7' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%23b56d80' fill-opacity='0.9' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* Colori Pacchetti Donna 50 Plus */
.page-checkup-donna-50-plus .package-card { border-top-color: var(--donna50-rosa-light); }
.page-checkup-donna-50-plus .package-card.featured { border-top-color: var(--donna50-rosa-dark); }
.page-checkup-donna-50-plus .package-badge { background: var(--donna50-rosa-dark); }
.page-checkup-donna-50-plus .package-list li::before { color: var(--donna50-rosa-dark); }
.page-checkup-donna-50-plus .package-price { color: var(--donna50-rosa-dark); }
/* =========================================================
   STILI PER LA PAGINA CHECK-UP DONNA (GIOVANE)
   ========================================================= */

:root {
    --donna-pink: #d97c95;
    --donna-pink-dark: #b56d80;
    --donna-pink-light: #fcc5c9;
}

/* Colori testi Hero */
.page-checkup-donna .hero-detail-text .title-primary,
.page-checkup-donna .hero-detail-text .title-secondary {
    color: var(--donna-pink);
}

/* Colore mascherina immagine mobile */
@media (max-width: 900px) {
    .page-checkup-donna .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-checkup-donna .brush-banner {
        background-color: var(--donna-pink);
    }
}

/* Spennellata SVG rosa chiaro */
.page-checkup-donna .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fcc5c9' fill-opacity='0.7' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%23d97c95' fill-opacity='0.9' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* Colori Pacchetti Donna */
.page-checkup-donna .package-card { border-top-color: var(--donna-pink-light); }
.page-checkup-donna .package-card.featured { border-top-color: var(--donna-pink-dark); }
.page-checkup-donna .package-badge { background: var(--donna-pink-dark); }
.page-checkup-donna .package-list li::before { color: var(--donna-pink-dark); }
.page-checkup-donna .package-price { color: var(--donna-pink-dark); }
/* =========================================================
   STILI PER LA PAGINA CHECK-UP METABOLISMO
   ========================================================= */

:root {
    --metabolismo-orange: #f4a261;
    --metabolismo-orange-dark: #e76f51;
    --metabolismo-orange-light: #f8c7a5;
}

/* Colori testi Hero */
.page-checkup-metabolismo .hero-detail-text .title-primary,
.page-checkup-metabolismo .hero-detail-text .title-secondary {
    color: var(--metabolismo-orange);
}

/* Colore mascherina immagine mobile */
@media (max-width: 900px) {
    .page-checkup-metabolismo .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-checkup-metabolismo .brush-banner {
        background-color: var(--metabolismo-orange);
    }
}

/* Spennellata SVG arancione */
.page-checkup-metabolismo .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23f8c7a5' fill-opacity='0.7' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%23f4a261' fill-opacity='0.9' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* Colori Pacchetti Metabolismo */
.page-checkup-metabolismo .package-card { border-top-color: var(--metabolismo-orange-light); }
.page-checkup-metabolismo .package-card.featured { border-top-color: var(--metabolismo-orange-dark); }
.page-checkup-metabolismo .package-badge { background: var(--metabolismo-orange-dark); }
.page-checkup-metabolismo .package-list li::before { color: var(--metabolismo-orange-dark); }
.page-checkup-metabolismo .package-price { color: var(--metabolismo-orange-dark); }

/* =========================================================
   STILI PER LA PAGINA CHECK-UP MST
   ========================================================= */

:root {
    --mst-purple: #9d4edd;
    --mst-purple-dark: #7b2cbf;
    --mst-purple-light: #c77dff;
}

/* Colori testi Hero */
.page-checkup-mst .hero-detail-text .title-primary,
.page-checkup-mst .hero-detail-text .title-secondary {
    color: var(--mst-purple);
}

/* Colore mascherina immagine mobile */
@media (max-width: 900px) {
    .page-checkup-mst .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-checkup-mst .brush-banner {
        background-color: var(--mst-purple);
    }
}

/* Spennellata SVG viola */
.page-checkup-mst .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23c77dff' fill-opacity='0.7' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%239d4edd' fill-opacity='0.9' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* Colori Pacchetti MST */
.page-checkup-mst .package-card { border-top-color: var(--mst-purple-light); }
.page-checkup-mst .package-card.featured { border-top-color: var(--mst-purple-dark); }
.page-checkup-mst .package-badge { background: var(--mst-purple-dark); }
.page-checkup-mst .package-list li::before { color: var(--mst-purple-dark); }
.page-checkup-mst .package-price { color: var(--mst-purple-dark); }
/* =========================================================
   STILI PER LA PAGINA CHECK-UP SPORTIVO
   ========================================================= */

:root {
    --sport-green: #2a9d8f;
    --sport-green-dark: #21867a;
    --sport-green-light: #4cc9b8;
}

/* Colori testi Hero */
.page-checkup-sportivo .hero-detail-text .title-primary,
.page-checkup-sportivo .hero-detail-text .title-secondary {
    color: var(--sport-green);
}

/* Colore mascherina immagine mobile */
@media (max-width: 900px) {
    .page-checkup-sportivo .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-checkup-sportivo .brush-banner {
        background-color: var(--sport-green);
    }
}

/* Spennellata SVG verde */
.page-checkup-sportivo .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%234cc9b8' fill-opacity='0.7' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%232a9d8f' fill-opacity='0.9' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* Colori Pacchetti Sportivo */
.page-checkup-sportivo .package-card { border-top-color: var(--sport-green-light); }
.page-checkup-sportivo .package-card.featured { border-top-color: var(--sport-green-dark); }
.page-checkup-sportivo .package-badge { background: var(--sport-green-dark); }
.page-checkup-sportivo .package-list li::before { color: var(--sport-green-dark); }
.page-checkup-sportivo .package-price { color: var(--sport-green-dark); }

/* =========================================================
   STILI PER LA PAGINA CHECK-UP STANCHEZZA
   ========================================================= */

:root {
    --stanchezza-gray: #5c677d;
    --stanchezza-gray-dark: #33415c;
    --stanchezza-gray-light: #7d8597;
}

/* Colori testi Hero */
.page-checkup-stanchezza .hero-detail-text .title-primary,
.page-checkup-stanchezza .hero-detail-text .title-secondary {
    color: var(--stanchezza-gray);
}

/* Colore mascherina immagine mobile */
@media (max-width: 900px) {
    .page-checkup-stanchezza .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-checkup-stanchezza .brush-banner {
        background-color: var(--stanchezza-gray);
    }
}

/* Spennellata SVG grigio/blu */
.page-checkup-stanchezza .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%237d8597' fill-opacity='0.7' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%235c677d' fill-opacity='0.9' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* Colori Pacchetti Stanchezza */
.page-checkup-stanchezza .package-card { border-top-color: var(--stanchezza-gray-light); }
.page-checkup-stanchezza .package-card.featured { border-top-color: var(--stanchezza-gray-dark); }
.page-checkup-stanchezza .package-badge { background: var(--stanchezza-gray-dark); }
.page-checkup-stanchezza .package-list li::before { color: var(--stanchezza-gray-dark); }
.page-checkup-stanchezza .package-price { color: var(--stanchezza-gray-dark); }
.page-checkup-stanchezza .hero-detail-image img {
    object-position: center 30%;  }

/* =========================================================
   STILI PER LA PAGINA CHECK-UP TIROIDEO
   ========================================================= */

:root {
    --tiroide-orange: #f69259;
    --tiroide-orange-dark: #e87a3e;
    --tiroide-orange-light: #fcc5a0;
}

/* Colori testi Hero */
.page-checkup-tiroideo .hero-detail-text .title-primary,
.page-checkup-tiroideo .hero-detail-text .title-secondary {
    color: var(--tiroide-orange);
}

/* Colore mascherina immagine mobile */
@media (max-width: 900px) {
    .page-checkup-tiroideo .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-checkup-tiroideo .brush-banner {
        background-color: var(--tiroide-orange);
    }
}

/* Spennellata SVG arancione */
.page-checkup-tiroideo .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fcc5a0' fill-opacity='0.7' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%23f69259' fill-opacity='0.9' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* Colori Pacchetti Tiroideo */
.page-checkup-tiroideo .package-card { border-top-color: var(--tiroide-orange-light); }
.page-checkup-tiroideo .package-card.featured { border-top-color: var(--tiroide-orange-dark); }
.page-checkup-tiroideo .package-badge { background: var(--tiroide-orange-dark); }
.page-checkup-tiroideo .package-list li::before { color: var(--tiroide-orange-dark); }
.page-checkup-tiroideo .package-price { color: var(--tiroide-orange-dark); }
/* =========================================================
   STILI PER LA PAGINA CHECK-UP UOMO 50 PLUS
   ========================================================= */

:root {
    --uomo50-blue: #4a7c9b;
    --uomo50-blue-dark: #3a5f7a;
    --uomo50-blue-light: #5d9bc2;
}

/* Colori testi Hero */
.page-checkup-uomo-50-plus .hero-detail-text .title-primary,
.page-checkup-uomo-50-plus .hero-detail-text .title-secondary {
    color: var(--uomo50-blue);
}

/* Colore mascherina immagine mobile */
@media (max-width: 900px) {
    .page-checkup-uomo-50-plus .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-checkup-uomo-50-plus .brush-banner {
        background-color: var(--uomo50-blue);
    }
}

/* Spennellata SVG blu scuro */
.page-checkup-uomo-50-plus .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%235d9bc2' fill-opacity='0.7' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%234a7c9b' fill-opacity='0.9' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* Colori Pacchetti Uomo 50 Plus */
.page-checkup-uomo-50-plus .package-card { border-top-color: var(--uomo50-blue-light); }
.page-checkup-uomo-50-plus .package-card.featured { border-top-color: var(--uomo50-blue-dark); }
.page-checkup-uomo-50-plus .package-badge { background: var(--uomo50-blue-dark); }
.page-checkup-uomo-50-plus .package-list li::before { color: var(--uomo50-blue-dark); }
.page-checkup-uomo-50-plus .package-price { color: var(--uomo50-blue-dark); }
.page-checkup-uomo-50-plus .hero-detail-image img {
    object-position: center 60%;  }
 /* =========================================================
   STILI PER LA PAGINA CHECK-UP UOMO
   ========================================================= */

:root {
    --uomo-blue: #46a0bc;
    --uomo-blue-dark: #3a7a8f;
    --uomo-blue-light: #5bc0de;
}

/* Colori testi Hero */
.page-checkup-uomo .hero-detail-text .title-primary,
.page-checkup-uomo .hero-detail-text .title-secondary {
    color: var(--uomo-blue);
}

/* Colore mascherina immagine mobile */
@media (max-width: 900px) {
    .page-checkup-uomo .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-checkup-uomo .brush-banner {
        background-color: var(--uomo-blue);
    }
}

/* Spennellata SVG blu brillante */
.page-checkup-uomo .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%235bc0de' fill-opacity='0.7' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%2346a0bc' fill-opacity='0.9' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* Colori Pacchetti Uomo */
.page-checkup-uomo .package-card { border-top-color: var(--uomo-blue-light); }
.page-checkup-uomo .package-card.featured { border-top-color: var(--uomo-blue-dark); }
.page-checkup-uomo .package-badge { background: var(--uomo-blue-dark); }
.page-checkup-uomo .package-list li::before { color: var(--uomo-blue-dark); }
.page-checkup-uomo .package-price { color: var(--uomo-blue-dark); }
.page-checkup-uomo .hero-detail-image img {
    object-position: center 20%;  }
    
    
    
/* =========================================================
   CAROSELLO NEWS HOMEPAGE
   ========================================================= */
.news-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 40px; /* spazio per i dots */
}

.news-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 10px 5px 20px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--purple) #e0e0e0;
    -webkit-overflow-scrolling: touch;
}

.news-slider::-webkit-scrollbar {
    height: 6px;
}
.news-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.news-slider::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 10px;
}
.news-slider::-webkit-scrollbar-thumb:hover {
    background: var(--text-purple);
}

.news-slide {
    flex: 0 0 calc(33.333% - 20px); /* 3 card visibili, considerando il gap */
    scroll-snap-align: start;
    min-width: 280px; /* larghezza minima per schermi piccoli */
}

/* Rimuovi i margini extra che potrebbero rompere il layout */
.news-slide .news-card {
    width: 100%;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Stile dei pallini */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot.active {
    background-color: var(--purple);
    transform: scale(1.3);
}

.dot:hover {
    background-color: var(--text-blue);
}

/* Responsive: su schermi piccoli mostra 1 card alla volta */
@media (max-width: 768px) {
    .news-slide {
        flex: 0 0 calc(100% - 20px);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .news-slide {
        flex: 0 0 calc(50% - 20px); /* 2 card su tablet */
    }
}
/* =========================================================
   ICONE PER LE CARD DEL TEAM (CHI SIAMO)
   ========================================================= */

.team-icon {
    width: 50px; 
    height: 50px; 
    border-radius: 14px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px; 
    transition: all 0.4s ease;
}

.team-icon svg { 
    width: 26px; 
    height: 26px; 
    stroke-width: 1.5; 
}

/* Effetto movimento quando passi col mouse sulla card */
.team-member-card:hover .team-icon { 
    transform: scale(1.1) rotate(-5deg); 
}

/* Colori specifici abbinati ai badge dei ruoli */
.icon-blue { background-color: rgba(27, 73, 155, 0.08); color: var(--text-blue); }
.icon-purple { background-color: var(--bg-purple-light); color: var(--text-purple); }
.icon-cyan { background-color: var(--bg-cyan-faint); color: #0f766e; }
.icon-red { background-color: #fef2f2; color: #dc2626; }
.icon-gray { background-color: #f1f5f9; color: #475569; }

.team-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.team-member-card {
    align-items: center !important;
    text-align: center !important;
}

.team-member-card .badge-blue {
    color: #000000 !important;
}
.badge-orange { background-color: #fff7ed; color: #f97316; }
.icon-orange { background-color: #fff7ed; color: #f97316; }
/* =========================================================
   STILI PER LA PAGINA PRENOTA: SALTA LA CODA
   ========================================================= */

/* 1. Colori testi Hero (Stesso Verde Acqua della card) */
.page-salta-coda .hero-detail-text .title-primary,
.page-salta-coda .hero-detail-text .title-secondary {
    color: #44a3aa;
}

/* 2. FIX IMMAGINE: espande la foto a sinistra e accorcia la sfumatura */
.page-salta-coda .hero-detail-image {
    width: 65% !important; 
}

.page-salta-coda .hero-detail-image img {
    object-fit: cover;
    object-position: center center !important; 
}

.page-salta-coda .hero-detail-image::before {
    background: linear-gradient(to right, 
        #ebf0f4 0%,               
        rgba(235, 240, 244, 0.9) 10%, 
        rgba(235, 240, 244, 0.2) 25%, 
        transparent 40%          
    ) !important;
}

/* 3. Colore sfondo solido per i dispositivi Mobile */
@media (max-width: 900px) {
    .page-salta-coda .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-salta-coda .brush-banner {
        background-color: #44a3aa;
    }
}

/* 4. Spennellata SVG in basso (Colori esatti: #4ecdc4 e #44a3aa) */
.page-salta-coda .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%234ecdc4' fill-opacity='0.55' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%2344a3aa' fill-opacity='0.65' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* =========================================================
   STILI PER LA PAGINA PRENOTA: PRELIEVO A DOMICILIO
   ========================================================= */

/* 1. Colori testi Hero (Usiamo il Viola del tema) */
.page-domicilio .hero-detail-text .title-primary,
.page-domicilio .hero-detail-text .title-secondary {
    color: var(--text-purple); /* Viola scuro */
}

/* 2. FIX IMMAGINE: espande la foto a sinistra e accorcia la sfumatura */
.page-domicilio .hero-detail-image {
    width: 60% !important; /* Allarga il box per includere l'infermiere */
}

.page-domicilio .hero-detail-image img {
    object-fit: cover;
    object-position: center center !important; /* Centra l'immagine invece di schiacciarla a destra */
}

.page-domicilio .hero-detail-image::before {
    background: linear-gradient(to right, 
        #ebf0f4 0%,               
        rgba(235, 240, 244, 0.9) 10%, 
        rgba(235, 240, 244, 0.2) 25%, 
        transparent 40%          
    ) !important;
}

/* 3. Colore sfondo solido per i dispositivi Mobile */
@media (max-width: 900px) {
    .page-domicilio .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-domicilio .brush-banner {
        background-color: var(--text-purple);
    }
}

/* 4. Spennellata SVG in basso (Colori Viola: #8675c9 e #5c4b99) */
.page-domicilio .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%238675c9' fill-opacity='0.85' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%235c4b99' fill-opacity='0.95' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

.page-domicilio .hero-detail-image::before {
    background: linear-gradient(to right, 
        #ebf0f4 0%,               
        rgba(235, 240, 244, 0.9) 5%, 
        rgba(235, 240, 244, 0.4) 15%, 
        transparent 35%          
    ) !important;
}
/* =========================================================
   STILI PER LA PAGINA PRENOTA: CONSULENZA GENETICA
   ========================================================= */

/* 1. Colori testi Hero (Rosa chiaro/Rosa) */
.page-consulenza-genetica .hero-detail-text .title-primary,
.page-consulenza-genetica .hero-detail-text .title-secondary {
    color: #d97c95; 
}

.page-consulenza-genetica .hero-detail-image img {
    object-position: center 30%; /* Puoi alzare o abbassare questo valore se l'immagine Ã¨ tagliata */
}

/* 3. Colore sfondo solido per i dispositivi Mobile */
@media (max-width: 900px) {
    .page-consulenza-genetica .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-consulenza-genetica .brush-banner {
        background-color: #d97c95;
    }
}

/* 4. Spennellata SVG in basso (Colori Rosa: #fcc5c9 e #d97c95, opacitÃ  0.55 e 0.65) */
.page-consulenza-genetica .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fcc5c9' fill-opacity='0.55' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%23d97c95' fill-opacity='0.65' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* =========================================================
   STILI PER LA PAGINA PRENOTA: BREATH TEST LATTOSIO
   ========================================================= */

/* 1. Colori testi Hero (Rosso/Cremisi) */
.page-breath-test .hero-detail-text .title-primary,
.page-breath-test .hero-detail-text .title-secondary {
    color: #d62828; 
}


/* 3. Colore sfondo solido per i dispositivi Mobile */
@media (max-width: 900px) {
    .page-breath-test .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-breath-test .brush-banner {
        background-color: #d62828;
    }
}

/* 4. Spennellata SVG in basso (Colori Rosso: #e63946 e #d62828, opacitÃ  0.55 e 0.65) */
.page-breath-test .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23e63946' fill-opacity='0.55' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%23d62828' fill-opacity='0.65' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* =========================================================
   STILI PER LA PAGINA PRENOTA: SPERMIOGRAMMA
   ========================================================= */

/* 1. Colori testi Hero (Blu) */
.page-spermiogramma .hero-detail-text .title-primary,
.page-spermiogramma .hero-detail-text .title-secondary {
    color: #5d9bc2; 
}


.page-spermiogramma .hero-detail-image img {
    object-position: center 40%; /* Regola questo valore se taglia l'immagine */
}

/* 3. Colore sfondo solido per i dispositivi Mobile */
@media (max-width: 900px) {
    .page-spermiogramma .hero-detail-image {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    }
    .page-spermiogramma .brush-banner {
        background-color: #5d9bc2;
    }
}

/* 4. Spennellata SVG in basso (Colori Blu: #8cc2e0 e #5d9bc2) */
.page-spermiogramma .brush-banner {
    background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 1000 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%238cc2e0' fill-opacity='0.55' d='M -20,80 Q 250,20 550,90 T 1050,70 L 1050,250 L -20,250 Z'/%3E%3Cpath fill='%235d9bc2' fill-opacity='0.65' d='M -20,130 Q 300,190 650,120 T 1050,130 L 1050,250 L -20,250 Z'/%3E%3C/svg%3E");
}

/* =========================================================
   RESIZE TITOLO SEZIONE "SCEGLI IL SERVIZIO"
   ========================================================= */
.booking-section .section-heading h2 {
    font-size: 26px; /* Ridotto rispetto al 32px originale */
    font-weight: 300; /* Mantiene un aspetto leggero ed elegante */
    color: var(--text-blue);
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Riduciamo in proporzione anche sui dispositivi mobili */
@media (max-width: 768px) {
    .booking-section .section-heading h2 {
        font-size: 20px;
        padding: 0 15px; /* Evita che il testo tocchi i bordi del telefono */
    }
      }
    /* =========================================================
   STILI PER LA DASHBOARD PAZIENTE (ELENCO REFERTI)
   ========================================================= */
.dashboard-section { padding: 60px 20px 50px; background-color: var(--bg-cyan-faint); }
.dashboard-container { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; min-height: 65vh; }

/* Box Anagrafica */
.dashboard-header { background: var(--white); padding: 30px 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); margin-bottom: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.patient-info h2 { color: var(--cyan); font-size: 24px; margin-bottom: 8px; text-transform: uppercase;}
.patient-info p { color: var(--text-gray); font-size: 15px; margin-bottom: 5px; font-weight: 500;}
.patient-info span.label { color: var(--text-dark); font-weight: 600; }
.btn-logout { background: #fee2e2; color: #ef4444; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-logout:hover { background: #fecaca; transform: translateY(-2px); }

/* LISTA REFERTI ONLINE */
/* Titolo "I tuoi Referti Disponibili" */
.referti-box-title {
    font-size: 22px;
    color: var(--text-blue); /* Usiamo il blu del tema */
    margin-bottom: 25px;
    font-weight: 300;
    padding-left: 10px;
}

/* Contenitore dei referti: ora non è più una scatola, ma solo un contenitore logico */
.referti-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Spazio tra una card e l'altra */
}

/* La Card del singolo Referto: questa è la modifica principale! */
.referto-item {
    background: var(--white);
    border-radius: 20px;
    padding: 20px 25px;
    box-shadow: 0 8px 30px rgba(0, 94, 184, 0.07); /* Ombra morbida azzurrata */
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Organizziamo gli elementi interni su una griglia per un allineamento perfetto */
    display: grid;
    grid-template-columns: auto 1fr auto; /* Icona | Testo (flessibile) | Pulsanti */
    align-items: center;
    gap: 20px; /* Spazio tra icona, testo e pulsanti */
}

/* Effetto "sollevamento" quando passi il mouse sopra */
.referto-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 94, 184, 0.12);
}

/* Stile per la data del referto */
.referto-date {
    font-weight: 600;
    color: var(--text-blue);
    font-size: 17px;
    letter-spacing: 0.5px;
}

/* Diamo uno stile anche all'icona della data per renderla più visibile */
.referto-date-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-cyan-faint); /* Sfondo azzurrino leggero */
    color: var(--cyan); /* Colore icona */
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsanti Azione */
.referto-actions { display: flex; gap: 15px; align-items: center; }
.btn-view-pdf { display: inline-flex; align-items: center; gap: 8px; background: var(--purple); color: white; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.3s; box-shadow: 0 4px 15px rgba(134, 117, 201, 0.3);}
.btn-view-pdf:hover { background: var(--text-purple); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(134, 117, 201, 0.4);}
.btn-delete { display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: #64748b; width: 45px; height: 45px; border-radius: 50%; text-decoration: none; transition: all 0.3s; border: none; cursor: pointer;}
.btn-delete:hover { background: #fee2e2; color: #ef4444; }

/* Info e Footer */
.dashboard-info { margin-top: 40px; text-align: center; }
.legend-box { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-gray); }
.review-link { background: var(--white); padding: 20px; border-radius: 16px; display: inline-block; font-size: 14px; color: var(--text-gray); box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.review-link a { color: var(--text-blue); font-weight: 600; text-decoration: none; }
.review-link a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .dashboard-header { flex-direction: column; align-items: flex-start; }
    .referto-item { 
        display: flex; 
        flex-wrap: wrap; 
        align-items: center; 
    }
    .referto-date {
        white-space: nowrap; /* Evita categoricamente che la data vada a capo */
    }
    .referto-actions { 
        width: 100%; 
        justify-content: space-between; 
        margin-top: 15px;
    }
}
/* =========================================================
   WIDGET GOOGLE REVIEW NATIVO (DASHBOARD PAZIENTE)
   ========================================================= */
.dashboard-info { margin-top: auto !important; }

.google-review-widget {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 10px 25px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06) !important;
    border: 1px solid #f1f5f9 !important;
    position: relative !important;
    overflow: hidden !important;
    
    /* Layout a Colonne Sicuro */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 30px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Barra superiore multicolore stile Google */
.google-review-widget::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 5px !important;
    background: linear-gradient(90deg, #4285F4 25%, #EA4335 25% 50%, #FBBC05 50% 75%, #34A853 75%) !important;
}

.google-review-widget:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 50px rgba(66, 133, 244, 0.15) !important;
}

/* Colonna 1: Logo e Stelle */
.google-brand-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.google-stars {
    color: #FBBC05 !important;
    font-size: 22px !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;
}

/* Colonna 2: Testo Centrale */
.google-text-col {
    flex: 1 !important;
    text-align: left !important;
}

.google-text-col h4 {
    color: #202124 !important; /* Colore scuro tipico Google */
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
}

.google-text-col p {
    color: #5f6368 !important; /* Grigio tipico Google */
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    text-align: justify !important;
}

/* Colonna 3: Bottone in stile Google/App */
.google-btn-col {
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.btn-google-solid {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #1a73e8 !important; /* Blu ufficiale Google */
    color: #ffffff !important;
    padding: 15px 32px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3) !important;
}

.btn-google-solid:hover {
    background-color: #1557b0 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Adattamento per Cellulari e Tablet */
@media (max-width: 900px) {
    .google-review-widget {
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px 20px !important;
    }
    
    .google-text-col {
        text-align: center !important;
    }

    /* FORZA IL TESTO AL CENTRO SUI CELLULARI (annulla il giustificato) */
    .google-text-col p {
        text-align: center !important; 
    }
    
    .btn-google-solid {
        width: 100% !important;
        padding: 15px 40px !important;
    }
}

/* =========================================================
   MOBILE V2 - HEADER HAMBURGER, HOME, CONTATTI, MAPPA
   ========================================================= */

body.menu-open {
    overflow: hidden;
}

.top-header {
    gap: 18px;
}

.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: rgba(255,255,255,0.9);
    color: var(--text-blue);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
}

.mobile-menu-toggle svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
}

.dropdown-toggle {
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dropdown-caret {
    transition: transform 0.25s ease;
}

.dropdown.is-open .dropdown-caret {
    transform: rotate(180deg);
}

.top-header .logo-container a {
    display: inline-flex;
    align-items: center;
}

.top-header .logo-container img {
    display: block;
}

.hero-content {
    margin-top: 0;
    padding-top: 110px;
}

.hero-subtitle {
    margin-bottom: 36px;
}

.hero-info-cards {
    margin-top: 10px;
}

.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-card-title {
    font-size: 22px;
    color: var(--text-blue);
    font-weight: 500;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--bg-purple-light);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.map-wrapper {
    min-height: 450px;
}

.contact-map-embed {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-map-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-cyan-faint) 0%, #ffffff 100%);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.contact-map-fallback-content {
    max-width: 460px;
}

.contact-map-fallback h3 {
    color: var(--text-blue);
    font-size: 24px;
    margin-bottom: 12px;
}

.contact-map-fallback p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 18px;
}

.contact-map-fallback.is-visible {
    display: flex;
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(15px);
    }
}

@media (max-width: 1024px) {
    .top-header {
        padding: 18px 22px;
        gap: 16px;
    }

    .top-header.scrolled {
        padding: 12px 22px;
    }
}

@media (max-width: 768px) {
    .top-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        gap: 12px;
    }

    .top-header.scrolled {
        padding: 10px 16px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .logo-container img {
        max-height: 56px;
    }

    .nav-menus {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px 18px;
        border-radius: 24px;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        box-shadow: 0 20px 45px rgba(0,0,0,0.14);
        border: 1px solid rgba(0,0,0,0.06);
    }

    .nav-menus.is-open {
        display: flex;
    }

    .text-links {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        font-size: 17px;
    }

    .text-links li,
    .text-links a,
    .dropdown-toggle {
        width: 100%;
    }

    .text-links a,
    .dropdown-toggle {
        justify-content: space-between;
        padding: 12px 6px;
    }

    .dropdown::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        min-width: 0;
        margin-top: 8px;
        border-radius: 16px;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
        background: #f8fbfd;
        padding: 8px;
    }

    .dropdown.is-open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        font-size: 15px;
        padding: 12px 18px;
    }

    .hero-section {
        min-height: auto;
        padding-bottom: 36px;
    }

    .hero-content {
        padding: 118px 18px 0;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.18;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.45;
        margin-bottom: 18px;
    }

    .hero-subtitle {
        font-size: 12px;
        margin-bottom: 26px !important;
    }

    .hero-info-cards {
        max-width: 100%;
        gap: 18px;
    }

    .hero-info-cards::before {
        display: none;
    }

    .info-card {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .info-icon-box {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .info-card h3 {
        font-size: 18px;
    }

    .info-card p {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .contact-hero {
        padding: 126px 16px 42px;
    }

    .contact-hero h1 {
        font-size: 32px;
    }

    .contact-hero p {
        font-size: 16px;
    }

    .contact-section {
        padding: 22px 16px 54px;
    }

    .contact-grid {
        gap: 20px;
    }

    .contact-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .contact-card-title {
        font-size: 20px;
        margin-bottom: 22px;
        padding-bottom: 12px;
    }

    .contact-item {
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .icon-box {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .info-content p.contact-text,
    .info-content a.contact-link {
        font-size: 16px;
    }

    .map-section,
    .parking-section,
    .emergency-banner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .map-wrapper {
        height: auto;
        min-height: 0;
        overflow: visible;
        box-shadow: none;
        background: transparent;
    }

    .contact-map-embed-shell {
        height: 300px;
        overflow: hidden;
        border-radius: 20px;
        background: var(--white);
        box-shadow: 0 16px 40px rgba(0,0,0,0.1);
        position: relative;
    }

    .contact-map-embed {
        display: block;
    }

    .map-overlay {
        position: static;
        max-width: none;
        margin-top: 14px;
        padding: 20px 18px;
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

    .parking-grid {
        grid-template-columns: 1fr;
    }

    .parking-card {
        padding: 28px 20px;
    }

    .emergency-banner h2 {
        font-size: 28px;
    }

    .emergency-banner p {
        font-size: 16px;
    }

    .emergency-phone {
        width: 100%;
        justify-content: center;
        font-size: 24px;
        padding: 16px 20px;
    }
}

/* =========================================================
   HOTFIX MENU MOBILE - SOTTOMENU NON TAGLIATO
   ========================================================= */
@media (max-width: 768px) {
    .nav-menus {
        overflow: visible !important;
    }

    .text-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .text-links > li {
        width: 100%;
    }

    .dropdown {
        position: static !important;
        width: 100%;
    }

    .dropdown-toggle,
    .dropdown > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 52px;
        padding: 12px 6px;
        border-radius: 14px;
        text-decoration: none;
        color: var(--text-dark);
        background: transparent;
    }

    .dropdown-menu {
        position: static !important;
        inset: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 10px;
        padding: 8px;
        border-radius: 16px;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05) !important;
        background: #f7f8fb !important;
        border: 1px solid rgba(0,0,0,0.06);
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        overflow: hidden;
    }

    .dropdown.is-open .dropdown-menu,
    .dropdown.open .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu li a {
        display: block;
        width: 100%;
        padding: 14px 16px;
        text-align: left;
        white-space: normal;
        line-height: 1.4;
        border-radius: 12px;
    }

    .dropdown::after {
        display: none !important;
    }
}

/* =========================================================
   HOTFIX MENU MOBILE - SFONDO PIENO E ALTEZZA NON TAGLIATA
   ========================================================= */
@media (max-width: 768px) {
    .top-header {
        background: #ffffff !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        align-items: flex-start !important;
    }

    .nav-menus {
        background: #ffffff !important;
        opacity: 1 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 0 0 24px 24px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
        overflow-y: auto !important;
        overflow-x: visible !important;
        height: auto !important;
        max-height: calc(100vh - 90px) !important;
        padding-bottom: 20px;
    }

    .top-header.menu-open,
    .top-header.menu-open .nav-menus,
    .nav-menus.is-open,
    .nav-menus.menu-open {
        background: #ffffff !important;
        display: block;
    }

    .text-links,
    .action-buttons {
        overflow: visible !important;
        background: transparent !important;
    }

    .dropdown-menu {
        background: #f7f8fb !important;
    }
}
/* =========================================================
   FIX DEFINITIVO MENU MOBILE: PANNELLO FISSO E SCROLL INTERNO
   ========================================================= */
@media (max-width: 768px) {
    .top-header {
        background: #ffffff !important;
        overflow: visible !important;
    }

    /* pannello menu mobile */
    .nav-menus {
        position: fixed !important;
        top: 110px; /* regola se necessario: 100-120px in base all'altezza del logo */
        left: 16px;
        right: 16px;
        width: auto !important;
        max-width: none !important;
        height: calc(100vh - 126px);
        max-height: calc(100vh - 126px);
        overflow-y: auto !important;
        overflow-x: hidden !important;
        background: #ffffff !important;
        border-radius: 24px;
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
        padding: 18px 16px 24px 16px !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        align-items: stretch !important;
    }

    .text-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        width: 100%;
    }

    .text-links > li {
        width: 100%;
    }

    .text-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 52px;
        font-size: 16px;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
        margin-top: 12px;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
        min-height: 56px;
        font-size: 15px;
    }

    /* sottomenu mobile */
    .dropdown {
        position: static !important;
        width: 100%;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-top: 8px;
        padding: 8px 0;
        border-radius: 16px;
        background: #f7f8fb !important;
        box-shadow: none !important;
        border: 1px solid rgba(0,0,0,0.06);
    }
}
/* =========================================================
   FIX: HAMBURGER SEMPRE IN ALTO A DESTRA
   ========================================================= */
@media (max-width: 768px) {
    .top-header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: #fff !important;
        padding: 16px 20px 18px 20px !important;
        display: block !important;
        min-height: 108px;
    }

    .logo-container {
        display: block;
        width: max-content;
    }

    /* usa tutti i nomi più probabili del bottone menu */
    .menu-toggle,
    .mobile-menu-toggle,
    .nav-toggle,
    .hamburger-toggle,
    .hamburger-btn {
        position: absolute !important;
        top: 18px !important;
        right: 20px !important;
        left: auto !important;
        bottom: auto !important;
        z-index: 10001 !important;
        margin: 0 !important;
    }

    .menu-toggle button,
    .mobile-menu-toggle button,
    .nav-toggle button,
    .hamburger-toggle button,
    .hamburger-btn button,
    .menu-toggle,
    .mobile-menu-toggle,
    .nav-toggle,
    .hamburger-toggle,
    .hamburger-btn {
        width: 72px;
        height: 72px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* pannello menu aperto sotto header, senza spostare il bottone */
    .nav-menus {
        position: fixed !important;
        top: 118px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        max-height: calc(100vh - 134px) !important;
        overflow-y: auto !important;
        background: #fff !important;
        border-radius: 24px;
        padding: 20px 16px 24px 16px !important;
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
        z-index: 10000 !important;
    }
}

/* =========================================================
   HOTFIX MAPPA CONTATTI STAGING
   ========================================================= */
.contact-map-embed-shell {
    position: absolute;
    inset: 0;
}

.contact-map-embed {
    display: block;
    background: var(--white);
}

.contact-map-fallback {
    z-index: 1;
}

.map-overlay {
    z-index: 2;
}
/* =========================================================
   GOOGLE MAPS SU STAGING - CARICAMENTO MANUALE
   ========================================================= */
.google-map-wrapper {
    min-height: 450px;
}

.contact-map-gate,
.contact-map-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.contact-map-gate {
    z-index: 3;
    background: linear-gradient(135deg, rgba(240,248,251,0.96) 0%, rgba(255,255,255,0.98) 100%);
}

.contact-map-fallback {
    z-index: 4;
    background: linear-gradient(135deg, rgba(255,255,255,0.97) 0%, rgba(228,230,243,0.98) 100%);
}

.contact-map-gate.is-visible,
.contact-map-fallback.is-visible {
    display: flex;
}

.contact-map-gate-content,
.contact-map-fallback-content {
    max-width: 480px;
}

.contact-map-gate h3,
.contact-map-fallback h3 {
    color: var(--text-blue);
    font-size: 24px;
    margin-bottom: 12px;
}

.contact-map-gate p,
.contact-map-fallback p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 18px;
}

.btn-map-button {
    border: none;
    cursor: pointer;
}

.btn-map-secondary {
    background: var(--blue-dark);
    margin-left: 10px;
}

.btn-map-secondary:hover {
    background: #143a7e;
}

@media (max-width: 768px) {
    .btn-map-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
}
/* =========================================================
   FIX DEFINITIVO 2.0: ALLINEAMENTO PERFETTO PREZZI
   ========================================================= */
/* 1. Assicura che le due scatole siano alte identiche */
.packages-grid {
    align-items: stretch !important; 
}

/* 2. Trasforma le card in colonne flessibili e rimuove lo zoom statico che sfalsava le misure */
.package-card,
.package-card.featured {
    display: flex !important;
    flex-direction: column !important;
    transform: translateY(0) !important; /* Annulla l'ingrandimento sfalsato */
    height: auto !important;
}

/* 3. Spinge matematicamente il prezzo sul fondo della scatola */
.package-price {
    margin-top: auto !important; 
    padding-top: 30px !important;
}

/* 4. Rimettiamo l'effetto "sollevamento" elegante solo quando ci passi sopra col mouse */
.package-card:hover,
.package-card.featured:hover {
    transform: translateY(-10px) !important;
}
/* =========================================================
   FIX: CENTRATURA TESTO FASCIA "CONSIGLIATO"
   ========================================================= */
.package-badge {
    width: 160px !important;       /* Diamo una larghezza fissa alla fascia */
    padding: 8px 0 !important;     /* Togliamo gli spazi laterali sfalsati */
    text-align: center !important; /* Centra il testo in modo millimetrico */
    right: -40px !important;       /* Aggiusta la posizione nell'angolo */
    top: 22px !important;          /* Aggiusta l'altezza nell'angolo */
}
/* =========================================================
   FIX: TESTO DESCRIZIONE GIUSTIFICATO NELLE CARD
   ========================================================= */
.package-description {
    text-align: justify !important; /* Forza il testo a essere giustificato */
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto; /* Migliora la sillabazione del testo giustificato */
}
/* =========================================================
   PULSANTE "TORNA INDIETRO" (GLOBALE)
   ========================================================= */

/* Contenitore */
.back-nav-container {
    margin-left: 50px;
    margin-bottom: 50px;
    display: flex;
}

/* Stile del pulsante a "Pillola" */
.back-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    background-color: var(--white);
    color: var(--text-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px; /* Richiama i bottoni del top-header */
    border: 1px solid rgba(0, 94, 184, 0.15); /* Bordo leggerissimo in tema */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); /* Stessa ombra delicata delle info-card */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Freccia */
.back-nav-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* Testo */
.back-nav-text {
    letter-spacing: 0.3px;
}

/* Effetto Hover (Passaggio del mouse) */
.back-nav-link:hover {
    transform: translateY(-3px); /* Si solleva */
    box-shadow: 0 10px 25px rgba(0, 94, 184, 0.1); /* L'ombra diventa azzurrata */
    border-color: rgba(0, 94, 184, 0.3);
    color: var(--blue-dark);
}

/* Micro-interazione: la freccia scivola a sinistra sull'hover */
.back-nav-link:hover .back-nav-arrow {
    transform: translateX(-5px);
}

/* Adattamento per dispositivi mobili */
@media (max-width: 768px) {
    .back-nav-container {
        margin-left: 20px; /* Margine ridotto per non tagliare lo schermo */
        margin-bottom: 40px;
        justify-content: center; /* Su telefono è più bello centrato */
    }
    
    .back-nav-link {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center; /* Riempie e centra il bottone su mobile */
        max-width: 320px;
    }
}
@media (max-width: 768px) {
    .hero-checkup-detail {
        padding: 110px 15px 30px; /* Riduce lo spazio vuoto in alto e in basso */
    }
    
    .hero-detail-text .title-primary {
        font-size: 36px !important; /* Testo più compatto */
    }
    
    .hero-detail-text .title-secondary {
        font-size: 28px !important;
    }
    
    .hero-detail-text .subtitle {
        font-size: 18px !important;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* Box "Come funziona" */
    .info-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 15px;
    }
    
    .info-box ul li {
        text-align: left; /* Mantiene l'elenco puntato leggibile */
    }

    /* Info card "Importante/Preparazione" */
    .modern-info-card {
        padding: 20px 15px;
    }
    
    .modern-info-card .card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .amelia-booking-wrapper {
        padding: 15px 10px !important; /* Dona più spazio orizzontale al form di prenotazione */
        border-radius: 15px;
    }
}

/* =========================================================
   OTTIMIZZAZIONE EXTRA MOBILE PER PAGINE PRENOTAZIONE INTERNE
   ========================================================= */
@media (max-width: 768px) {
    /* 1. Riduzione padding Hero */
    .hero-checkup-detail { padding: 110px 15px 30px !important; }
    .hero-detail-text .title-primary { font-size: 32px !important; }
    .hero-detail-text .title-secondary { font-size: 26px !important; }
    .hero-detail-text .subtitle { font-size: 16px !important; }
    
    /* 2. Riorganizzazione Box Informativi */
    .info-box[style], .modern-info-card[style], .amelia-booking-wrapper[style] {
        margin-bottom: 30px !important;
        padding: 20px 15px !important;
    }
    
    .info-box {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .info-box ul li { text-align: left !important; }
    
    .modern-info-card .card-header {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    /* 3. Pulsante torna indietro */
    .back-nav-container {
        margin: 0 15px 30px 15px !important;
    }
    
    .back-nav-link {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* 4. Fix card "Scegli prestazione" */
    .modern-service-card {
        padding: 25px 15px !important;
    }
}
/* =========================================================
   FIX OVERLAP TESTO "PRENOTA ONLINE E IMMAGINE" SU MOBILE
   ========================================================= */
@media (max-width: 768px) {
    .booking-hero {
        height: 50vh !important;
        min-height: 420px !important;
        padding-top: 140px !important; /* Diamo più respiro rispetto al menu superiore fisso */
        
        /* Limitiamo l'altezza dell'immagine al 45% del blocco. 
           In questo modo rimarrà sempre confinata in basso e non toccherà MAI il testo */
        background-size: auto 45%, 100% 100%, 100% 100% !important; 
    }
}


/* =========================================================
   FIX DEFINITIVO IMMAGINE "DOMICILIO" (AUMENTO ALTEZZA)
   ========================================================= */
@media (max-width: 900px) {

    /* 1. Rimuoviamo gli effetti grafici che sbiadiscono e tagliano */
    .page-domicilio .hero-detail-image::before,
    .page-domicilio .hero-detail-image {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        background: none !important;
    }

    /* 2. LA SOLUZIONE:
       Aumentiamo di molto l'altezza del box dell'immagine (a 420px).
       In questo modo, la foto si vedrà bene e la fascia viola coprirà solo lo spazio vuoto in eccesso in basso. */
    .page-domicilio .hero-detail-image {
        height: 480px !important;
        width: 100% !important;
    }

    /* 3. Inquadriamo l'immagine nella parte ALTA del suo box, lasciando lo spazio sotto */
    .page-domicilio .hero-detail-image img {
        object-position: center 30% !important;
    }

    /* 4. Ottimizziamo il padding della fascia viola per mobile */
    .page-domicilio .brush-banner {
        padding: 18px 18px 20px 20px !important;
    }
}


/* =========================================================
   FIX IMMAGINI HERO SU MOBILE (Pagine Prenotazione)
   ========================================================= */
@media (max-width: 900px) {

    /* 1. Reset generico per tutte le pagine: rimuove effetti fantasma e tagli */
    .page-salta-coda .hero-detail-image::before,
    .page-consulenza-genetica .hero-detail-image::before,
    .page-spermiogramma .hero-detail-image::before,
    .page-breath-test .hero-detail-image::before,
    .page-salta-coda .hero-detail-image,
    .page-consulenza-genetica .hero-detail-image,
    .page-spermiogramma .hero-detail-image,
    .page-breath-test .hero-detail-image {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        background: none !important;
        width: 100% !important;
    }

    /* 2. Imposta un'altezza standard per i contenitori delle immagini */
    .page-salta-coda .hero-detail-image,
    .page-consulenza-genetica .hero-detail-image,
    .page-spermiogramma .hero-detail-image,
    .page-breath-test .hero-detail-image {
        height: 380px !important;
    }

    /* 3. Inquadratura specifica per ogni immagine */
    .page-salta-coda .hero-detail-image img {
        object-position: center 30% !important; /* Inquadra il volto e il telefono */
    }
    .page-consulenza-genetica .hero-detail-image img {
        object-position: center 40% !important; /* Inquadra la scena madre-neonato */
    }
    .page-spermiogramma .hero-detail-image img {
        object-position: center center !important; /* L'immagine è già centrata di suo */
    }
    .page-breath-test .hero-detail-image img {
        object-position: center 30% !important; /* Inquadra il volto della donna */
    }
}

/* =========================================================
   FIX: RIDUZIONE ALTEZZA FASCIA COLORATA SU MOBILE
   ========================================================= */
@media (max-width: 900px) {

    /* 1. Riduciamo il padding (spaziatura interna) della fascia */
    .brush-banner {
        padding: 13px 18px 16px 25px !important;
    }

    /* 2. Riduciamo la dimensione del testo all'interno della fascia */
    .brush-banner-text {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
}

<!-- STILI AGGIUNTIVI PER LA RICERCA E IL CODICE FISCALE -->
    :root {
        --primary-blue: #0056b3;
        --soft-blue: #f0f7ff;
        --text-dark: #2c3e50;
        --text-gray: #6c757d;
        --card-bg: #ffffff;
    }

    /* Stile Barra di Ricerca Moderna */
    .elegant-search-container {
        margin-bottom: 35px;
        background-color: var(--card-bg);
        border-radius: 50px;
        padding: 6px 6px 6px 20px;
        display: flex;
        align-items: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.04);
        border: 1px solid #e9ecef;
        transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .elegant-search-container:focus-within {
        box-shadow: 0 4px 25px rgba(0, 86, 179, 0.1);
        border-color: #cce5ff;
    }
    .search-icon-input {
        color: #adb5bd;
        margin-right: 10px;
    }
    .elegant-search-input {
        flex-grow: 1;
        border: none !important;
        background: transparent !important;
        padding: 12px 0 !important;
        font-size: 16px;
        color: var(--text-dark);
        outline: none !important;
        box-shadow: none !important;
    }
    .elegant-search-input::placeholder {
        color: #adb5bd;
    }
    .elegant-btn-search {
        background-color: var(--primary-blue);
        color: white;
        border: none;
        padding: 12px 28px;
        border-radius: 40px;
        cursor: pointer;
        font-weight: 500;
        font-size: 15px;
        transition: all 0.3s ease;
    }
    .elegant-btn-search:hover {
        background-color: #004494;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0, 68, 148, 0.2);
    }

    /* Stile Card Referto Moderne */
    .elegant-referto-item {
        background: var(--card-bg);
        border-radius: 16px;
        padding: 20px 25px;
        display: flex;
        align-items: center;
        margin-bottom: 16px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.02);
        border: 1px solid #f1f3f5;
        transition: all 0.3s ease;
    }
    .elegant-referto-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.06);
        border-color: #e2e8f0;
    }
    
    /* Info Testuali Card */
    .referto-info-block {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-right: auto;
        padding-left: 20px;
    }
    .referto-paziente-nome {
        font-size: 17px;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 4px;
    }
    .referto-dettagli-riga {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 14px;
        color: var(--text-gray);
    }
    .dettaglio-punto {
        color: #dee2e6;
        font-size: 18px;
    }

    /* Adattabilità Mobile */
    @media (max-width: 768px) {
        .elegant-referto-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
            padding: 20px;
        }
        .referto-info-block {
            padding-left: 0;
            margin-bottom: 10px;
        }
        .referto-actions {
            width: 100%;
            justify-content: space-between;
        }
    }
    
   /* =========================================================
   MODIFICHE RICHIESTE: BARRA RICERCA, REFERTI COMPATTI E DATA
   ========================================================= */

/* 1. Barra di ricerca: sfondo grigio chiaro e bottone gigante/scuro */
.elegant-search-container {
    background-color: #f1f5f9 !important; /* Sfondo che stacca dal bianco */
    border: 2px solid #cbd5e1 !important; /* Bordo più marcato */
}

.elegant-btn-search {
    background-color: #1b499b !important; /* Blu scuro aziendale per massima visibilità */
    font-weight: 700 !important; 
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 14px 40px !important; /* Bottone più grande */
    box-shadow: 0 4px 15px rgba(27, 73, 155, 0.4) !important;
}

/* 2. Lista Referti "attaccata" a scorrimento (stile Rubrica) */
.referti-list {
    gap: 0 !important; /* Rimuove lo spazio tra i pazienti */
    border: 1px solid #e2e8f0; /* Crea una scatola esterna... */
    border-radius: 16px; /* ...con bordi arrotondati */
    overflow: hidden;
}

.elegant-referto-item {
    margin-bottom: 0 !important; /* Toglie lo spazio sotto */
    border-radius: 0 !important; /* Toglie gli angoli arrotondati al singolo paziente */
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important; /* Linea divisoria tra pazienti */
    box-shadow: none !important; /* Rimuove l'ombra singola */
    padding: 15px 25px !important; /* Li rende più compatti */
}

/* Toglie la riga divisoria all'ultimo paziente in fondo */
.elegant-referto-item:last-child {
    border-bottom: none !important;
}

/* Animazione semplificata al passaggio del mouse (sfondo grigetto) */
.elegant-referto-item:hover {
    background-color: #f8fafc !important;
    transform: none !important; /* Evita che la riga "salti" rovinando la tabella */
}

/* 3. Stile per la Data sotto l'icona del calendario */
.referto-icon-date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 75px;
}

.referto-data-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-blue);
    text-align: center;
    line-height: 1.2;
}
/* =========================================================
   MODIFICA: TABELLA REFERTI BIANCA E RIGHE PIU' STRETTE
   ========================================================= */

/* 1. Forza lo sfondo bianco per tutta la scatola/tabella dei referti */
.referti-list {
    background-color: #ffffff !important; 
}

/* 2. Riduce lo spazio interno di ogni riga per renderla molto più stretta */
.elegant-referto-item {
    padding: 8px 20px !important; /* Prima era 15px 25px */
}

/* 3. Rimpicciolisce nome e codice fiscale per adattarli alla riga stretta */
.referto-paziente-nome {
    font-size: 15px !important;
    margin-bottom: 2px !important;
}

.referto-dettagli-riga {
    font-size: 12px !important;
}

/* 4. Rimpicciolisce icona del calendario e data */
.referto-icon-date-col {
    min-width: 60px !important;
    gap: 2px !important; /* Meno spazio tra icona e testo della data */
}

.referto-date-icon {
    width: 36px !important;  /* Prima era 48px */
    height: 36px !important;
}

.referto-date-icon svg {
    width: 18px !important;
    height: 18px !important;
}

.referto-data-text {
    font-size: 11px !important;
}

/* 5. Rimpicciolisce i bottoni PDF e Cestino altrimenti tengono la riga "larga" */
.btn-view-pdf {
    padding: 8px 16px !important; /* Bottone più snello */
    font-size: 12px !important;
}

.btn-delete {
    width: 36px !important; /* Cestino più piccolo */
    height: 36px !important;
}

.btn-delete svg {
    width: 16px !important;
    height: 16px !important;
}

/* =========================================================
   MODIFICA: CODICE FISCALE ACCANTO AL NOME SULLA STESSA RIGA
   ========================================================= */

/* Trasforma il blocco info da "colonna" (uno sotto l'altro) a "riga" (uno accanto all'altro) */
.referto-info-block {
    flex-direction: row !important; /* Li mette in riga */
    align-items: baseline !important; /* Allinea il testo in basso in modo preciso */
    flex-wrap: wrap !important; /* Se lo schermo è stretto, lo manda a capo in automatico */
    gap: 15px !important; /* Questo è lo spazio vuoto tra il Nome e il CF */
}

/* Rimuove lo spazietto che c'era sotto il nome quando stavano in colonna */
.referto-paziente-nome {
    margin-bottom: 0 !important; 
}
/* =========================================================
   MODIFICA: COLORE NOME DEL MEDICO IN VIOLA (TEMA)
   ========================================================= */

/* Cambia il colore del testo principale dell'intestazione (il nome) in Viola */
.patient-info h2 {
    color: var(--purple) !important; 
}

/* =========================================================
   MODIFICA: RIPRISTINO STILE DASHBOARD PAZIENTE (SEPARATA DAL MEDICO)
   ========================================================= */

/* 1. Il nome del paziente torna in Ciano (colore del tema) */
.dashboard-paziente .patient-info h2 {
    color: var(--cyan) !important; 
}

/* 2. Rimuove la scatola unica del medico e ripristina lo spazio tra i referti */
.dashboard-paziente .referti-list {
    gap: 20px !important; /* Ricrea lo spazio tra le card */
    border: none !important; /* Toglie il bordo esterno */
    background-color: transparent !important; /* Toglie lo sfondo bianco unito */
    overflow: visible !important;
}

/* FIX SOVRAPPOSIZIONE PULSANTE INDIETRO SU MOBILE */
@media (max-width: 768px) {
    .back-link-login {
        position: relative !important; 
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 25px !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .login-page-wrapper {
        padding-top: 130px !important; 
    }
}